Skip to content

Commit

Permalink
[SYCL][Graph] Fix potential issue with command buffer commands (#13224)
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
Bensuo authored Apr 2, 2024
1 parent 632486c commit 3c7f99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sycl/source/detail/graph_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<sycl::detail::CGExecKernel *>((Node->MCommandGroup.get())),
Expand Down

0 comments on commit 3c7f99d

Please sign in to comment.