diff --git a/sycl/source/detail/scheduler/commands.cpp b/sycl/source/detail/scheduler/commands.cpp index 498a3cee61728..0edba6d54a103 100644 --- a/sycl/source/detail/scheduler/commands.cpp +++ b/sycl/source/detail/scheduler/commands.cpp @@ -2470,8 +2470,7 @@ static ur_result_t SetKernelParamsAndLaunch( } std::optional ImplicitLocalArg = - ProgramManager::getInstance().kernelImplicitLocalArgPos( - DeviceKernelInfo.Name); + DeviceKernelInfo.getImplicitLocalArgPos(); // Set the implicit local memory buffer to support // get_work_group_scratch_memory. This is for backend not supporting // CUDA-style local memory setting. Note that we may have -1 as a position,