File tree Expand file tree Collapse file tree 3 files changed +27
-6
lines changed
source/adapters/level_zero Expand file tree Collapse file tree 3 files changed +27
-6
lines changed Original file line number Diff line number Diff 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'
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 11// ===--------- device.cpp - Level Zero Adapter ----------------------------===//
22//
3- // Copyright (C) 2023 Intel Corporation
3+ // Copyright (C) 2023-2024 Intel Corporation
44//
55// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
66// Exceptions. See LICENSE.TXT
@@ -337,8 +337,27 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
337337 case UR_DEVICE_INFO_DRIVER_VERSION:
338338 case UR_DEVICE_INFO_BACKEND_RUNTIME_VERSION:
339339 return ReturnValue (Device->Platform ->ZeDriverVersion .c_str ());
340- case UR_DEVICE_INFO_VERSION:
341- return ReturnValue (Device->Platform ->ZeDriverApiVersion .c_str ());
340+ case UR_DEVICE_INFO_VERSION: {
341+ // from compute-runtime/shared/source/helpers/hw_ip_version.h
342+ typedef struct {
343+ uint32_t revision : 6 ;
344+ uint32_t reserved : 8 ;
345+ uint32_t release : 8 ;
346+ uint32_t architecture : 10 ;
347+ } version_components_t ;
348+ typedef struct {
349+ union {
350+ uint32_t value;
351+ version_components_t components;
352+ };
353+ } ipVersion_t;
354+ ipVersion_t IpVersion;
355+ IpVersion.value = Device->ZeDeviceIpVersionExt ->ipVersion ;
356+ std::stringstream S;
357+ S << IpVersion.components .architecture << " ."
358+ << IpVersion.components .release << " ." << IpVersion.components .revision ;
359+ return ReturnValue (S.str ().c_str ());
360+ }
342361 case UR_DEVICE_INFO_PARTITION_MAX_SUB_DEVICES: {
343362 auto Res = Device->Platform ->populateDeviceCacheIfNeeded ();
344363 if (Res != UR_RESULT_SUCCESS) {
You can’t perform that action at this time.
0 commit comments