Skip to content

Commit cddb103

Browse files
committed
Changes to workflows to stabilize tests on CPU
1 parent 18d1728 commit cddb103

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/conda-package.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ jobs:
174174
run: |
175175
. $CONDA/etc/profile.d/conda.sh
176176
conda activate test_dpctl
177+
export SYCL_QUEUE_THREAD_POOL_SIZE=6
177178
python -m pytest -v --pyargs $MODULE_NAME
178179
179180
test_windows:
@@ -291,7 +292,7 @@ jobs:
291292
env:
292293
DPCTL_VERBOSITY: error
293294
run: >-
294-
conda activate dpctl_test && python -m pytest -v -s --pyargs ${{ env.MODULE_NAME }}
295+
SET SYCL_QUEUE_THREAD_POOL_SIZE=6 && conda activate dpctl_test && python -m pytest -v -s --pyargs ${{ env.MODULE_NAME }}
295296
296297
upload_linux:
297298
needs: test_linux
@@ -583,6 +584,7 @@ jobs:
583584
# echo "libintelocl.so" | tee /etc/OpenCL/vendors/intel-cpu.icd
584585
python -c "import dpctl; dpctl.lsplatform()"
585586
export ARRAY_API_TESTS_MODULE=dpctl.tensor
587+
export SYCL_QUEUE_THREAD_POOL_SIZE=6
586588
cd /home/runner/work/array-api-tests
587589
pytest --ci --json-report --json-report-file=$FILE array_api_tests/ || true
588590
- name: Set Github environment variables
@@ -602,8 +604,8 @@ jobs:
602604
echo "$MESSAGE" >> $GITHUB_ENV
603605
echo "EOF" >> $GITHUB_ENV
604606
else
605-
MESSAGE="Array API standard conformance tests failed to run for dpctl=$PACKAGE_VERSION."
606-
echo "MESSAGE=$MESSAGE" >> $GITHUB_ENV
607+
echo "Array API standard conformance tests failed to run for dpctl=$PACKAGE_VERSION."
608+
exit 1
607609
fi
608610
- name: Post result to PR
609611
uses: mshick/add-pr-comment@v1

.github/workflows/generate-coverage.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
- name: Upload coverage data to coveralls.io
9797
shell: bash -l {0}
9898
run: |
99+
export SYCL_QUEUE_THREAD_POOL_SIZE=6
99100
echo "Processing c-api-coverage"
100101
export DPCTL_LCOV_FN=$(find _skbuild -name dpctl.lcov)
101102
grep "/tmp" $DPCTL_LCOV_FN

.github/workflows/os-llvm-sycl-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ jobs:
112112
run: |
113113
cat << 'EOF' > set_allvars.sh
114114
#!/usr/bin/bash
115+
export SYCL_QUEUE_THREAD_POOL_SIZE=6
115116
export SYCL_BUNDLE_FOLDER=/home/runner/work/sycl_bundle
116117
source ${SYCL_BUNDLE_FOLDER}/dpcpp_compiler/startup.sh
117118
export LD_LIBRARY_PATH=${SYCL_BUNDLE_FOLDER}/oclcpuexp/x64:${LD_LIBRARY_PATH}

0 commit comments

Comments
 (0)