Skip to content

Commit c822d41

Browse files
authored
Merge pull request #1212 from IntelPython/stabilize-CI-thread-pool-size
Changes to workflows to stabilize tests on CPU
2 parents 18d1728 + b895ed8 commit c822d41

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ jobs:
171171
conda activate test_dpctl
172172
gdb --batch -ex r -ex 'info sharedlibrary' -ex 'set print elements 1000' -ex bt --args ${CONDA_PREFIX}/bin/python -m pytest -q -ra --disable-warnings --pyargs dpctl.tests.test_tensor_elementwise::test_cos_order -vv || true
173173
- name: Run tests
174+
env:
175+
SYCL_QUEUE_THREAD_POOL_SIZE: 6
174176
run: |
175177
. $CONDA/etc/profile.d/conda.sh
176178
conda activate test_dpctl
@@ -290,6 +292,7 @@ jobs:
290292
shell: cmd /C CALL {0}
291293
env:
292294
DPCTL_VERBOSITY: error
295+
SYCL_QUEUE_THREAD_POOL_SIZE: 6
293296
run: >-
294297
conda activate dpctl_test && python -m pytest -v -s --pyargs ${{ env.MODULE_NAME }}
295298
@@ -576,6 +579,8 @@ jobs:
576579
- name: Run array API conformance tests
577580
id: run-array-api-tests
578581
shell: bash -l {0}
582+
env:
583+
SYCL_QUEUE_THREAD_POOL_SIZE: 6
579584
run: |
580585
FILE=/home/runner/work/.report.json
581586
. $CONDA/etc/profile.d/conda.sh
@@ -602,8 +607,8 @@ jobs:
602607
echo "$MESSAGE" >> $GITHUB_ENV
603608
echo "EOF" >> $GITHUB_ENV
604609
else
605-
MESSAGE="Array API standard conformance tests failed to run for dpctl=$PACKAGE_VERSION."
606-
echo "MESSAGE=$MESSAGE" >> $GITHUB_ENV
610+
echo "Array API standard conformance tests failed to run for dpctl=$PACKAGE_VERSION."
611+
exit 1
607612
fi
608613
- name: Post result to PR
609614
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
@@ -124,6 +124,7 @@ jobs:
124124
env:
125125
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
126126
COVERALLS_PARALLEL: true
127+
SYCL_QUEUE_THREAD_POOL_SIZE: 6
127128

128129
coveralls:
129130
name: Indicate completion to coveralls.io

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ jobs:
149149
150150
- name: Run dpctl/tests
151151
shell: bash -l {0}
152+
env:
153+
SYCL_QUEUE_THREAD_POOL_SIZE: 6
152154
run: |
153155
source set_allvars.sh
154156
# skip test due to https://github.com/intel/llvm/issues/9264

0 commit comments

Comments
 (0)