diff --git a/sycl/source/detail/graph_impl.cpp b/sycl/source/detail/graph_impl.cpp index 237e9618b32ab..91b895cc3ccf9 100644 --- a/sycl/source/detail/graph_impl.cpp +++ b/sycl/source/detail/graph_impl.cpp @@ -8,7 +8,6 @@ #define __SYCL_GRAPH_IMPL_CPP -#include #include #include #include @@ -16,6 +15,7 @@ #include #include #include +#include #include #ifdef __INTEL_PREVIEW_BREAKING_CHANGES #include @@ -1540,7 +1540,7 @@ void exec_graph_impl::populateURKernelUpdateStructs( // and can therefore not be looked up, but since they are self-contained // they can simply be launched directly. if (KernelBundleImplPtr && !KernelBundleImplPtr->isInterop()) { - auto KernelName = ExecCG.MKernelName; + const auto &KernelName = ExecCG.MKernelName; kernel_id KernelID = sycl::detail::ProgramManager::getInstance().getSYCLKernelID(KernelName); kernel SyclKernel =