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 1 commit
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
8 changes: 5 additions & 3 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ jobs:
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate test_dpctl
export SYCL_QUEUE_THREAD_POOL_SIZE=6
python -m pytest -v --pyargs $MODULE_NAME

test_windows:
Expand Down Expand Up @@ -291,7 +292,7 @@ jobs:
env:
DPCTL_VERBOSITY: error
run: >-
conda activate dpctl_test && python -m pytest -v -s --pyargs ${{ env.MODULE_NAME }}
SET SYCL_QUEUE_THREAD_POOL_SIZE=6 && conda activate dpctl_test && python -m pytest -v -s --pyargs ${{ env.MODULE_NAME }}

upload_linux:
needs: test_linux
Expand Down Expand Up @@ -583,6 +584,7 @@ jobs:
# echo "libintelocl.so" | tee /etc/OpenCL/vendors/intel-cpu.icd
python -c "import dpctl; dpctl.lsplatform()"
export ARRAY_API_TESTS_MODULE=dpctl.tensor
export SYCL_QUEUE_THREAD_POOL_SIZE=6
cd /home/runner/work/array-api-tests
pytest --ci --json-report --json-report-file=$FILE array_api_tests/ || true
- name: Set Github environment variables
Expand All @@ -602,8 +604,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 @@ -96,6 +96,7 @@ jobs:
- name: Upload coverage data to coveralls.io
shell: bash -l {0}
run: |
export SYCL_QUEUE_THREAD_POOL_SIZE=6
echo "Processing c-api-coverage"
export DPCTL_LCOV_FN=$(find _skbuild -name dpctl.lcov)
grep "/tmp" $DPCTL_LCOV_FN
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/os-llvm-sycl-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ jobs:
run: |
cat << 'EOF' > set_allvars.sh
#!/usr/bin/bash
export SYCL_QUEUE_THREAD_POOL_SIZE=6
export SYCL_BUNDLE_FOLDER=/home/runner/work/sycl_bundle
source ${SYCL_BUNDLE_FOLDER}/dpcpp_compiler/startup.sh
export LD_LIBRARY_PATH=${SYCL_BUNDLE_FOLDER}/oclcpuexp/x64:${LD_LIBRARY_PATH}
Expand Down