From da5ab3a9e11296bcb72ffe51f6ae331b0cef42c1 Mon Sep 17 00:00:00 2001 From: Victor Lomuller Date: Wed, 4 Dec 2024 16:28:19 +0000 Subject: [PATCH 1/2] [SYCL] Fix compilation issue introduced by d0d8a56 (#16264) Fix compilation issue introduced by #15061 --- sycl/source/detail/scheduler/commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/source/detail/scheduler/commands.cpp b/sycl/source/detail/scheduler/commands.cpp index 99e33228af95f..29e21567f2fd7 100644 --- a/sycl/source/detail/scheduler/commands.cpp +++ b/sycl/source/detail/scheduler/commands.cpp @@ -2509,7 +2509,7 @@ static ur_result_t SetKernelParamsAndLaunch( // If there is no implicit arg, let the driver handle it via a property if (WorkGroupMemorySize && !ImplicitLocalArg.has_value()) { property_list.push_back( - {UR_EXP_LAUNCH_PROPERTY_ID_WORK_GROUP_MEMORY, WorkGroupMemorySize}); + {UR_EXP_LAUNCH_PROPERTY_ID_WORK_GROUP_MEMORY, {WorkGroupMemorySize}}); } if (!property_list.empty()) { ur_event_handle_t UREvent = nullptr; From 6296f90eb867d8831a485ec0127f483d71dae381 Mon Sep 17 00:00:00 2001 From: Nick Sarnie Date: Thu, 5 Dec 2024 03:43:39 +0900 Subject: [PATCH 2/2] [SYCL] Fix build again after d0d8a56 (#16268) Manually reproduced the error and confirmed the fix. No idea why we need to do this though. Signed-off-by: Nick Sarnie --- sycl/source/detail/scheduler/commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/source/detail/scheduler/commands.cpp b/sycl/source/detail/scheduler/commands.cpp index 29e21567f2fd7..cd5d0301430dc 100644 --- a/sycl/source/detail/scheduler/commands.cpp +++ b/sycl/source/detail/scheduler/commands.cpp @@ -2509,7 +2509,7 @@ static ur_result_t SetKernelParamsAndLaunch( // If there is no implicit arg, let the driver handle it via a property if (WorkGroupMemorySize && !ImplicitLocalArg.has_value()) { property_list.push_back( - {UR_EXP_LAUNCH_PROPERTY_ID_WORK_GROUP_MEMORY, {WorkGroupMemorySize}}); + {UR_EXP_LAUNCH_PROPERTY_ID_WORK_GROUP_MEMORY, {{WorkGroupMemorySize}}}); } if (!property_list.empty()) { ur_event_handle_t UREvent = nullptr;