Skip to content

Commit b5074c8

Browse files
committed
Opencl and threads
1 parent 609b4d5 commit b5074c8

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,28 @@ jobs:
2929
with:
3030
python-version: '3.x'
3131

32+
- name: Install POCL on Ubuntu Runners
33+
run: |
34+
sudo apt-get update && sudo apt-get install -y ocl-icd-opencl-dev pocl-opencl-icd
35+
shell: bash
36+
37+
3238
- name: Suppress warnings
33-
run: echo "CPPFLAGS += -Wno-psabi -Wno-deprecated-declarations" >> make/local
39+
run: |
40+
echo "CPPFLAGS += -Wno-psabi -Wno-deprecated-declarations" >> make/local
41+
echo "STAN_OPENCL=true" >> make/local
42+
echo "STAN_THREADS=true" >> make/local
3443
3544
- name: Build Math libs
3645
run: |
3746
make -f make/standalone math-libs -j2
3847
3948
- name: Run mix/fun unit tests
4049
run: |
41-
python runTests.py -j4 --jumbo test/unit/math/fwd
42-
python runTests.py -j4 --jumbo test/unit/math/prim
43-
python runTests.py -j4 --jumbo test/unit/math/rev
50+
python runTests.py -j4 --jumbo --run-all test/unit/math/fwd
51+
python runTests.py -j4 --jumbo --run-all test/unit/math/prim
52+
python runTests.py -j4 --jumbo --run-all test/unit/math/rev
53+
python runTests.py -j4 --jumbo --run-all test/unit/math/opencl
4454
python runTests.py -j2 test/unit/math/mix
4555
4656
- name: Upload gtest_output xml

runTests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
"test/unit/math/opencl/device_functions",
6363
"test/unit/math/opencl/kernel_generator",
6464
"test/unit/math/opencl/prim",
65-
"test/unit/math/opencl/prim/constraint",
6665
"test/unit/math/opencl/rev",
6766
"test/unit/math/opencl/rev/constraint",
6867
]

0 commit comments

Comments
 (0)