Skip to content

Commit

Permalink
Opencl and threads
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Jan 17, 2025
1 parent 609b4d5 commit b5074c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,28 @@ jobs:
with:
python-version: '3.x'

- name: Install POCL on Ubuntu Runners
run: |
sudo apt-get update && sudo apt-get install -y ocl-icd-opencl-dev pocl-opencl-icd
shell: bash


- name: Suppress warnings
run: echo "CPPFLAGS += -Wno-psabi -Wno-deprecated-declarations" >> make/local
run: |
echo "CPPFLAGS += -Wno-psabi -Wno-deprecated-declarations" >> make/local
echo "STAN_OPENCL=true" >> make/local
echo "STAN_THREADS=true" >> make/local
- name: Build Math libs
run: |
make -f make/standalone math-libs -j2
- name: Run mix/fun unit tests
run: |
python runTests.py -j4 --jumbo test/unit/math/fwd
python runTests.py -j4 --jumbo test/unit/math/prim
python runTests.py -j4 --jumbo test/unit/math/rev
python runTests.py -j4 --jumbo --run-all test/unit/math/fwd
python runTests.py -j4 --jumbo --run-all test/unit/math/prim
python runTests.py -j4 --jumbo --run-all test/unit/math/rev
python runTests.py -j4 --jumbo --run-all test/unit/math/opencl
python runTests.py -j2 test/unit/math/mix
- name: Upload gtest_output xml
Expand Down
1 change: 0 additions & 1 deletion runTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"test/unit/math/opencl/device_functions",
"test/unit/math/opencl/kernel_generator",
"test/unit/math/opencl/prim",
"test/unit/math/opencl/prim/constraint",
"test/unit/math/opencl/rev",
"test/unit/math/opencl/rev/constraint",
]
Expand Down

0 comments on commit b5074c8

Please sign in to comment.