-
Notifications
You must be signed in to change notification settings - Fork 796
[CI] Use prebuilt E2E binaries when running on Windows Gen12 #17335
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
Changes from 6 commits
dadc1d3
51cb464
94b2173
de9b2fa
0cf0098
b0ea3c2
eb9ef39
dc547e1
80cd96d
0f8ebbf
481fd78
a9cf853
1c6ff22
ee4da02
db1171a
3b06e80
c2a41cd
17bc6f9
32c25d9
c4a6bf6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,6 +63,15 @@ on: | |
| required: false | ||
| default: "cl" | ||
|
|
||
| e2e_testing_mode: | ||
| type: string | ||
| default: "full" | ||
|
|
||
| e2e_binaries_artifact: | ||
| type: string | ||
| default: '' | ||
| required: False | ||
|
|
||
| cts_testing_mode: | ||
| description: | | ||
| Testing mode to run SYCL-CTS in, can be either `full`, `build-only` | ||
|
|
@@ -141,12 +150,31 @@ jobs: | |
| sycl-ls | ||
| - run: | | ||
| sycl-ls --verbose | ||
|
|
||
| - name: Download E2E Binaries | ||
| if: ${{ inputs.tests_selector == 'e2e' && inputs.e2e_testing_mode == 'run-only' }} | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: ${{ inputs.e2e_binaries_artifact }} | ||
| - name: Extract E2E Binaries | ||
| if: ${{ inputs.tests_selector == 'e2e' && inputs.e2e_testing_mode == 'run-only' }} | ||
| shell: bash | ||
| run: | | ||
| mkdir build-e2e | ||
| tar -xf e2e_bin.tar.gz -C build-e2e | ||
|
|
||
| - name: Configure E2E with Level Zero target | ||
| if: inputs.tests_selector == 'e2e' | ||
| shell: cmd | ||
| run: | | ||
| mkdir build-e2e | ||
| cmake -GNinja -B build-e2e -S.\llvm\sycl\test-e2e -DSYCL_TEST_E2E_TARGETS="level_zero:gpu" -DCMAKE_CXX_COMPILER="clang++" -DLEVEL_ZERO_LIBS_DIR="D:\\github\\level-zero_win-sdk\\lib" -DLEVEL_ZERO_INCLUDE="D:\\github\\level-zero_win-sdk\\include" -DLLVM_LIT="..\\llvm\\llvm\\utils\\lit\\lit.py" | ||
|
|
||
| - name: Keep track of files after configuring E2E step | ||
| if: ${{ always() && inputs.tests_selector == 'e2e' && inputs.e2e_testing_mode == 'build-only' }} | ||
| shell: bash | ||
| run: ls build-e2e > e2econf_files.txt | ||
sarnex marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: Run End-to-End tests | ||
| if: inputs.tests_selector == 'e2e' | ||
| shell: bash | ||
|
|
@@ -155,9 +183,32 @@ jobs: | |
| if [[ ${{inputs.compiler}} == 'icx' ]]; then | ||
| export LIT_FILTER_OUT="compile_on_win_with_mdd" | ||
| fi | ||
| export LIT_OPTS="-v --no-progress-bar --show-unsupported --show-pass --show-xfail --max-time 3600 --time-tests ${{ inputs.extra_lit_opts }}" | ||
| export LIT_OPTS="-v --no-progress-bar --show-unsupported --show-pass --show-xfail --max-time 3600 --time-tests --param test-mode=${{ inputs.e2e_testing_mode }} ${{ inputs.extra_lit_opts }}" | ||
| cmake --build build-e2e --target check-sycl-e2e | ||
|
|
||
| # There are issues with running the tests with the same CMakeCache.txt, or | ||
| # even rebuilding it on top of an existing one in gen12, so we remove the | ||
| # configuration files before packing | ||
|
||
| - name: Remove E2E configuration files | ||
| if: ${{ always() && inputs.tests_selector == 'e2e' && inputs.e2e_testing_mode == 'build-only' }} | ||
| shell: bash | ||
| run: | | ||
| for FILE in $(cat e2econf_files.txt); do rm -r build-e2e/$FILE; done | ||
| rm e2econf_files.txt | ||
|
|
||
| - name: Pack E2E test binaries | ||
| if: ${{ always() && inputs.tests_selector == 'e2e' && inputs.e2e_testing_mode == 'build-only' }} | ||
| shell: bash | ||
| run: | | ||
| tar -czf e2e_bin.tar.gz -C build-e2e . | ||
| - name: Upload E2E test binaries | ||
| if: ${{ always() && inputs.tests_selector == 'e2e' && inputs.e2e_testing_mode == 'build-only' }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ inputs.e2e_binaries_artifact }} | ||
| path: e2e_bin.tar.gz | ||
| retention-days: 3 | ||
|
|
||
| - name: Run SYCL CTS Tests | ||
| if: inputs.tests_selector == 'cts' | ||
| uses: ./devops/actions/run-tests/windows/cts | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,9 @@ | |
|
|
||
| // REQUIRES: opencl-aot, cpu | ||
|
|
||
| // XFAIL: windows && !(build-mode && run-mode) | ||
| // XFAIL-TRACKER: https://github.com/intel/llvm/issues/17515 | ||
|
||
|
|
||
| // CPU AOT targets host isa, so we compile on the run system instead. | ||
| // RUN: %{run-aux} %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/Inputs/aot.cpp -o %t.out | ||
| // RUN: %{run} %t.out | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping BMG running in
fullmode since multiple tests seem to hang #17582