Skip to content

Changes to workflows to stabilize tests on CPU #1212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ jobs:
conda activate test_dpctl
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
- name: Run tests
env:
SYCL_QUEUE_THREAD_POOL_SIZE: 6
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate test_dpctl
Expand Down Expand Up @@ -290,6 +292,7 @@ jobs:
shell: cmd /C CALL {0}
env:
DPCTL_VERBOSITY: error
SYCL_QUEUE_THREAD_POOL_SIZE: 6
run: >-
conda activate dpctl_test && python -m pytest -v -s --pyargs ${{ env.MODULE_NAME }}

Expand Down Expand Up @@ -576,6 +579,8 @@ jobs:
- name: Run array API conformance tests
id: run-array-api-tests
shell: bash -l {0}
env:
SYCL_QUEUE_THREAD_POOL_SIZE: 6
run: |
FILE=/home/runner/work/.report.json
. $CONDA/etc/profile.d/conda.sh
Expand All @@ -602,8 +607,8 @@ jobs:
echo "$MESSAGE" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
else
MESSAGE="Array API standard conformance tests failed to run for dpctl=$PACKAGE_VERSION."
echo "MESSAGE=$MESSAGE" >> $GITHUB_ENV
echo "Array API standard conformance tests failed to run for dpctl=$PACKAGE_VERSION."
exit 1
fi
- name: Post result to PR
uses: mshick/add-pr-comment@v1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/generate-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: true
SYCL_QUEUE_THREAD_POOL_SIZE: 6

coveralls:
name: Indicate completion to coveralls.io
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/os-llvm-sycl-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ jobs:

- name: Run dpctl/tests
shell: bash -l {0}
env:
SYCL_QUEUE_THREAD_POOL_SIZE: 6
run: |
source set_allvars.sh
# skip test due to https://github.com/intel/llvm/issues/9264
Expand Down