From 7b2cd9111c4392de4178a876127875542796b52d Mon Sep 17 00:00:00 2001 From: Jaydeep Patel Date: Thu, 12 Sep 2024 17:43:53 +0000 Subject: [PATCH] SWDEV-478049 - Clear packets list as it is being added back later during submitKernelInternal while setting params for graph node. Change-Id: I7451ffda93d94eeda5e1be05bb87558ae86d2a19 [ROCm/clr commit: 2494992695e0c99f8c09fd790a00ca7af860a2d9] --- projects/clr/hipamd/src/hip_graph_internal.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/clr/hipamd/src/hip_graph_internal.hpp b/projects/clr/hipamd/src/hip_graph_internal.hpp index 87af33000c..6e32f1d02e 100644 --- a/projects/clr/hipamd/src/hip_graph_internal.hpp +++ b/projects/clr/hipamd/src/hip_graph_internal.hpp @@ -273,6 +273,7 @@ struct GraphNode : public hipGraphNodeDOTAttribute { size_t GetKernargSegmentAlignment() const { return kernargSegmentAlignment_; } void CaptureAndFormPacket(hip::Stream* capture_stream, GraphKernelArgManager* kernArgMgr) { hipError_t status = CreateCommand(capture_stream); + gpuPackets_.clear(); for (auto& command : commands_) { command->setCapturingState(true, &gpuPackets_, kernArgMgr, &capturedKernelName_); // Enqueue command to capture GPU Packet. The packet is not submitted to the device.