Skip to content

Commit f8c2abb

Browse files
committed
Limit # of workers in E2E job through LIT_OPTS
LIT_OPTS is more generic, and also covers cases where there is no direct way to modify what CMake passes to llvm-lit command.
1 parent 8577187 commit f8c2abb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/e2e_core.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,14 @@ jobs:
146146
- name: Build SYCL
147147
run: cmake --build ${{github.workspace}}/sycl_build -j
148148

149+
- name: Set extra llvm-lit options
150+
run: echo "LIT_OPTS=\"-sv \${{matrix.adapter.extra_lit_flags}}\"" >> $GITHUB_ENV
151+
149152
- name: Run check-sycl
150153
# Remove after fixing SYCL test :: abi/layout_handler.cpp
151154
# This issue does not affect further execution of e2e with UR.
152155
continue-on-error: true
153-
run: cmake --build ${{github.workspace}}/sycl_build --target check-sycl -j6
156+
run: cmake --build ${{github.workspace}}/sycl_build --target check-sycl
154157

155158
- name: Set additional env. vars
156159
run: |
@@ -172,7 +175,6 @@ jobs:
172175
-DSYCL_TEST_E2E_TARGETS="${{matrix.adapter.prefix}}${{matrix.adapter.str_name}}:${{matrix.adapter.unit}}"
173176
-DCMAKE_CXX_COMPILER="$(which clang++)"
174177
-DLLVM_LIT="${{github.workspace}}/sycl-repo/llvm/utils/lit/lit.py"
175-
-DSYCL_E2E_TESTS_LIT_FLAGS="-sv;${{matrix.adapter.extra_lit_flags}}"
176178
177179
- name: Set test filters for L0
178180
if: matrix.adapter.name == 'L0'

.github/workflows/e2e_level_zero.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
filter_out: "GroupAlgorithm/root_group.cpp|Basic/exceptions-SYCL-2020.cpp|Graph/UnsupportedDevice/device_query.cpp|Graph/RecordReplay/exception_inconsistent_contexts.cpp"
3434
# These runners by default spawn upwards of 260 workers. That's too much for the GPU.
3535
# We also add a time out just in case some test hangs
36-
extra_lit_flags: "-j 50;--max-time 600"
36+
extra_lit_flags: "-j 50 --max-time 600"

0 commit comments

Comments
 (0)