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:
146
146
- name : Build SYCL
147
147
run : cmake --build ${{github.workspace}}/sycl_build -j
148
148
149
+ - name : Set extra llvm-lit options
150
+ run : echo "LIT_OPTS=\"-sv ${{matrix.adapter.extra_lit_flags}}\"" >> $GITHUB_ENV
151
+
149
152
- name : Run check-sycl
150
153
# Remove after fixing SYCL test :: abi/layout_handler.cpp
151
154
# This issue does not affect further execution of e2e with UR.
152
155
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
154
157
155
158
- name : Set additional env. vars
156
159
run : |
@@ -172,7 +175,6 @@ jobs:
172
175
-DSYCL_TEST_E2E_TARGETS="${{matrix.adapter.prefix}}${{matrix.adapter.str_name}}:${{matrix.adapter.unit}}"
173
176
-DCMAKE_CXX_COMPILER="$(which clang++)"
174
177
-DLLVM_LIT="${{github.workspace}}/sycl-repo/llvm/utils/lit/lit.py"
175
- -DSYCL_E2E_TESTS_LIT_FLAGS="-sv;${{matrix.adapter.extra_lit_flags}}"
176
178
177
179
- name : Set test filters for L0
178
180
if : matrix.adapter.name == 'L0'
Original file line number Diff line number Diff line change 33
33
filter_out : " GroupAlgorithm/root_group.cpp|Basic/exceptions-SYCL-2020.cpp|Graph/UnsupportedDevice/device_query.cpp|Graph/RecordReplay/exception_inconsistent_contexts.cpp"
34
34
# These runners by default spawn upwards of 260 workers. That's too much for the GPU.
35
35
# 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 1
1
// ===--------- device.cpp - Level Zero Adapter ----------------------------===//
2
2
//
3
- // Copyright (C) 2023 Intel Corporation
3
+ // Copyright (C) 2023-2024 Intel Corporation
4
4
//
5
5
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6
6
// Exceptions. See LICENSE.TXT
@@ -337,8 +337,27 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
337
337
case UR_DEVICE_INFO_DRIVER_VERSION:
338
338
case UR_DEVICE_INFO_BACKEND_RUNTIME_VERSION:
339
339
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
+ }
342
361
case UR_DEVICE_INFO_PARTITION_MAX_SUB_DEVICES: {
343
362
auto Res = Device->Platform ->populateDeviceCacheIfNeeded ();
344
363
if (Res != UR_RESULT_SUCCESS) {
You can’t perform that action at this time.
0 commit comments