Skip to content

Commit 169e4e8

Browse files
committed
[UR][L0] Disable Immediate Command List DG2 Windows
Signed-off-by: Neil R. Spruit <[email protected]>
1 parent ba09d77 commit 169e4e8

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55

66
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)
88

99
# Check if unified runtime is built as a standalone project.
1010
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR OR UR_STANDALONE_BUILD)

source/adapters/level_zero/device.cpp

+11-1
Original file line numberDiff line numberDiff line change
@@ -1490,12 +1490,22 @@ ur_device_handle_t_::useImmediateCommandLists() {
14901490
bool isDG2OrNewer = this->isIntelDG2OrNewer();
14911491
bool isDG2SupportedDriver =
14921492
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()) {
14941500
return PerQueue;
14951501
} else {
14961502
return NotUsed;
14971503
}
14981504
}
1505+
1506+
logger::info("NOTE: L0 Immediate CommandList Setting: {}",
1507+
ImmediateCommandlistsSetting);
1508+
14991509
switch (ImmediateCommandlistsSetting) {
15001510
case 0:
15011511
return NotUsed;

0 commit comments

Comments
 (0)