Skip to content

Commit 3e58dfe

Browse files
committed
XXX
1 parent 6078fe7 commit 3e58dfe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

unified-runtime/source/adapters/level_zero/v2/command_list_cache.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ static bool ForceDisableCopyOffload = [] {
5858
raii::ze_command_list_handle_t
5959
command_list_cache_t::createCommandList(const command_list_descriptor_t &desc) {
6060
ZeStruct<zex_intel_queue_copy_operations_offload_hint_exp_desc_t> offloadDesc;
61-
auto requestedCopyOffload =
62-
std::visit([](auto &&arg) { return arg.CopyOffloadEnabled; }, desc);
63-
61+
auto requestedCopyOffload = false;
6462
if (ForceDisableCopyOffload && requestedCopyOffload) {
6563
logger::info("Copy offload is disabled by the environment variable.");
6664
requestedCopyOffload = false;

0 commit comments

Comments
 (0)