Skip to content

Commit 3c7f99d

Browse files
authored
[SYCL][Graph] Fix potential issue with command buffer commands (#13224)
- Fix uninitialized pointer values leading to trying to call piExtCommandBufferReleaseCommand on backends which don't support update, which may return as an unsupported feature. Initializing pointers to 0 prevents this call from happening.
1 parent 632486c commit 3c7f99d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/graph_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ sycl::detail::pi::PiExtSyncPoint exec_graph_impl::enqueueNodeDirect(
655655
findRealDeps(Deps, N.lock(), MPartitionNodes[Node]);
656656
}
657657
sycl::detail::pi::PiExtSyncPoint NewSyncPoint;
658-
sycl::detail::pi::PiExtCommandBufferCommand NewCommand;
658+
sycl::detail::pi::PiExtCommandBufferCommand NewCommand = 0;
659659
pi_int32 Res = sycl::detail::enqueueImpCommandBufferKernel(
660660
Ctx, DeviceImpl, CommandBuffer,
661661
*static_cast<sycl::detail::CGExecKernel *>((Node->MCommandGroup.get())),

0 commit comments

Comments
 (0)