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]
Этот коммит содержится в:
Jaydeep Patel
2024-09-12 17:43:53 +00:00
коммит произвёл Jaydeepkumar Patel
родитель b5a8d775d6
Коммит 7b2cd9111c
+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.