File tree 3 files changed +18
-2
lines changed
source/adapters/level_zero
3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 4
4
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5
5
6
6
cmake_minimum_required (VERSION 3.20.0 FATAL_ERROR)
7
- project (unified-runtime VERSION 0.11.8 )
7
+ project (unified-runtime VERSION 0.11.9 )
8
8
9
9
# Check if unified runtime is built as a standalone project.
10
10
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR OR UR_STANDALONE_BUILD)
Original file line number Diff line number Diff line change @@ -1490,12 +1490,23 @@ ur_device_handle_t_::useImmediateCommandLists() {
1490
1490
bool isDG2OrNewer = this ->isIntelDG2OrNewer ();
1491
1491
bool isDG2SupportedDriver =
1492
1492
this ->Platform ->isDriverVersionNewerOrSimilar (1 , 5 , 30820 );
1493
- if ((isDG2SupportedDriver && isDG2OrNewer) || isPVC ()) {
1493
+ // Disable immediate command lists for DG2 devices on Windows due to driver
1494
+ // limitations.
1495
+ bool isLinux = true ;
1496
+ #ifdef _WIN32
1497
+ isLinux = false ;
1498
+ #endif
1499
+ if ((isDG2SupportedDriver && isDG2OrNewer && isLinux) || isPVC () ||
1500
+ isNewerThanIntelDG2 ()) {
1494
1501
return PerQueue;
1495
1502
} else {
1496
1503
return NotUsed;
1497
1504
}
1498
1505
}
1506
+
1507
+ logger::info (" NOTE: L0 Immediate CommandList Setting: {}" ,
1508
+ ImmediateCommandlistsSetting);
1509
+
1499
1510
switch (ImmediateCommandlistsSetting) {
1500
1511
case 0 :
1501
1512
return NotUsed;
Original file line number Diff line number Diff line change @@ -196,6 +196,11 @@ struct ur_device_handle_t_ : _ur_object {
196
196
ZeDeviceIpVersionExt->ipVersion >= 0x030dc000 );
197
197
}
198
198
199
+ bool isNewerThanIntelDG2 () {
200
+ return (ZeDeviceProperties->vendorId == 0x8086 &&
201
+ ZeDeviceIpVersionExt->ipVersion >= 0x030f0000 );
202
+ }
203
+
199
204
bool isIntegrated () {
200
205
return (ZeDeviceProperties->flags & ZE_DEVICE_PROPERTY_FLAG_INTEGRATED);
201
206
}
You can’t perform that action at this time.
0 commit comments