Skip to content

Commit 347af19

Browse files
committed
[CI] Re-enable ABI-compatibility testing in pre-commit
Added UR_FORCE_FETCH_LEVEL_ZERO CMake option that forces Level Zero loader fetching even if a preinstalled one is found on the platform.
1 parent 168f459 commit 347af19

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/sycl-linux-precommit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,15 @@ jobs:
196196
image: ghcr.io/intel/llvm/sycl_prebuilt_tests:sycl-rel-6_2
197197
target_devices: level_zero:gpu
198198
extra_lit_opts: '--param test-preview-mode=False --filter-out "${{ needs.compat_read_exclude.outputs.FILTER_6_2 }}"'
199+
extra_cmake_args: -DUR_FORCE_FETCH_LEVEL_ZERO=ON
199200
binaries_artifact: 'in-container'
200-
skip_run: true
201201
- name: ABI compatibility / sycl-rel-6_3
202202
runner: '["Linux", "pvc"]'
203203
image: ghcr.io/intel/llvm/sycl_prebuilt_tests:sycl-rel-6_3
204204
target_devices: level_zero:gpu
205205
extra_lit_opts: '--param test-preview-mode=False --filter-out "${{ needs.compat_read_exclude.outputs.FILTER_6_3 }}"'
206+
extra_cmake_args: -DUR_FORCE_FETCH_LEVEL_ZERO=ON
206207
binaries_artifact: 'in-container'
207-
skip_run: true
208208

209209
uses: ./.github/workflows/sycl-linux-run-tests.yml
210210
with:

unified-runtime/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ option(UR_BUILD_XPTI_LIBS "Build the XPTI libraries when tracing is enabled" ON)
5656
option(UR_STATIC_LOADER "Build loader as a static library" OFF)
5757
option(UR_FORCE_LIBSTDCXX "Force use of libstdc++ in a build using libc++ on Linux" OFF)
5858
option(UR_ENABLE_LATENCY_HISTOGRAM "Enable latncy histogram" OFF)
59+
option(UR_FORCE_FETCH_LEVEL_ZERO "Force fetching Level Zero even if preinstalled loader is found" OFF)
5960
set(UR_EXTERNAL_DEPENDENCIES "" CACHE STRING
6061
"List of external CMake targets for executables/libraries to depend on")
6162
set(UR_DPCXX "" CACHE FILEPATH "Path of the DPC++ compiler executable")

unified-runtime/cmake/FetchLevelZero.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ else()
3232
endif()
3333
endif()
3434

35-
if(NOT LEVEL_ZERO_LIB_NAME AND NOT LEVEL_ZERO_LIBRARY)
35+
if((NOT LEVEL_ZERO_LIB_NAME AND NOT LEVEL_ZERO_LIBRARY) OR UR_FORCE_FETCH_LEVEL_ZERO)
3636
message(STATUS "Level Zero Adapter: Download Level Zero loader and headers from github.com")
3737

3838
# Workaround warnings/errors for Level Zero build

0 commit comments

Comments
 (0)