Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nrspruit/v0.10.15rc #2418

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

cmake_minimum_required(VERSION 3.20.0 FATAL_ERROR)
project(unified-runtime VERSION 0.10.14)
project(unified-runtime VERSION 0.10.15)

# Check if unified runtime is built as a standalone project.
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR OR UR_STANDALONE_BUILD)
Expand Down
5 changes: 4 additions & 1 deletion source/adapters/level_zero/command_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,10 +609,13 @@ ur_result_t createMainCommandList(ur_context_handle_t Context,
*/
bool canBeInOrder(ur_context_handle_t Context,
const ur_exp_command_buffer_desc_t *CommandBufferDesc) {
const char *UrRet = std::getenv("UR_L0_USE_DRIVER_INORDER_LISTS");
// In-order command-lists are not available in old driver version.
bool DriverInOrderRequested = UrRet ? std::atoi(UrRet) != 0 : false;
bool CompatibleDriver = Context->getPlatform()->isDriverVersionNewerOrSimilar(
1, 3, L0_DRIVER_INORDER_MIN_VERSION);
return CompatibleDriver
bool CanUseDriverInOrderLists = CompatibleDriver && DriverInOrderRequested;
return CanUseDriverInOrderLists
? (CommandBufferDesc ? CommandBufferDesc->isInOrder : false)
: false;
}
Expand Down
6 changes: 3 additions & 3 deletions source/adapters/level_zero/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1204,10 +1204,10 @@ bool ur_device_handle_t_::useDriverInOrderLists() {

static const bool UseDriverInOrderLists = [&] {
const char *UrRet = std::getenv("UR_L0_USE_DRIVER_INORDER_LISTS");
bool CompatibleDriver = this->Platform->isDriverVersionNewerOrSimilar(
1, 3, L0_DRIVER_INORDER_MIN_VERSION);
// bool CompatibleDriver = this->Platform->isDriverVersionNewerOrSimilar(
// 1, 3, L0_DRIVER_INORDER_MIN_VERSION);
if (!UrRet)
return CompatibleDriver;
return false;
return std::atoi(UrRet) != 0;
}();

Expand Down
Loading