From a42fdbcbbb77ac6790c3b0920530cde9a19a3b83 Mon Sep 17 00:00:00 2001 From: Ben Tracy Date: Mon, 1 Apr 2024 13:13:43 +0100 Subject: [PATCH] [SYCL][Graph] Fix potential issue with command buffer commands - Fix uninitialized pointer values leading to trying to call unsupported features on backends which don't support update. --- sycl/source/detail/graph_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/source/detail/graph_impl.cpp b/sycl/source/detail/graph_impl.cpp index 408ba1351f6b1..92dac039ed90c 100644 --- a/sycl/source/detail/graph_impl.cpp +++ b/sycl/source/detail/graph_impl.cpp @@ -655,7 +655,7 @@ sycl::detail::pi::PiExtSyncPoint exec_graph_impl::enqueueNodeDirect( findRealDeps(Deps, N.lock(), MPartitionNodes[Node]); } sycl::detail::pi::PiExtSyncPoint NewSyncPoint; - sycl::detail::pi::PiExtCommandBufferCommand NewCommand; + sycl::detail::pi::PiExtCommandBufferCommand NewCommand = 0; pi_int32 Res = sycl::detail::enqueueImpCommandBufferKernel( Ctx, DeviceImpl, CommandBuffer, *static_cast((Node->MCommandGroup.get())),