SWDEV-422207 - Enable DEBUG_CLR_GRAPH_PACKET_CAPTURE environiment variable

Change-Id: I9bf72b9c1a56980352109bd4d42b54ecb2d1b8f9


[ROCm/clr commit: ae0368d12d]
This commit is contained in:
Anusha GodavarthySurya authored and Maneesh Gupta committed 2024-02-05 05:08:11 +00:00
1 parent 7e4e75a53d
commit 5c0490f53b
3 files changed
+5 -3

No files matched your search

@@ -585,8 +585,9 @@ hipError_t GraphExec::Run(hipStream_t stream) {
amd::AccumulateCommand* accumulate = nullptr;
bool isLastPacketKernel = false;
if (DEBUG_CLR_GRAPH_PACKET_CAPTURE) {
uint8_t* lastCapturedPacket = (topoOrder_.back()->GetType() == hipGraphNodeTypeKernel) ?
topoOrder_.back()->GetAqlPacket() : nullptr;
uint8_t* lastCapturedPacket = (topoOrder_.back()->GetType() == hipGraphNodeTypeKernel)
? topoOrder_.back()->GetAqlPacket()
: nullptr;
accumulate = new amd::AccumulateCommand(*hip_stream, {}, nullptr, lastCapturedPacket);
}