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: 2494992695]
This commit is contained in:
Jaydeep Patel authored and Jaydeepkumar Patel committed 2024-09-16 23:10:32 -04:00
1 parent b5a8d775d6
commit 7b2cd9111c
1 file changed
+1
@@ -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.