From d03b38ba622a468eba85c4050d2deb2e3bab2468 Mon Sep 17 00:00:00 2001 From: Saleel Kudchadker Date: Wed, 25 Oct 2023 05:37:47 +0000 Subject: [PATCH] SWDEV-422207 - Fix profiling check Change-Id: Ia6ca28f0b593ea1680732684dd10f40c0043c973 [ROCm/clr commit: 182f6e2e6d5bc09d955480a68d88da1afe058353] --- projects/clr/rocclr/device/rocm/rocvirtual.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/clr/rocclr/device/rocm/rocvirtual.cpp b/projects/clr/rocclr/device/rocm/rocvirtual.cpp index 873dacf03b..a0725e6b0e 100644 --- a/projects/clr/rocclr/device/rocm/rocvirtual.cpp +++ b/projects/clr/rocclr/device/rocm/rocvirtual.cpp @@ -1064,8 +1064,7 @@ inline bool VirtualGPU::dispatchAqlPacket(uint8_t* aqlpacket) { // If rocprof tracing is enabled, store the correlation ID in the dispatch packet. // The profiler can retrieve this correlation ID to attribute waves to specific dispatch // locations. - if (activity_prof::IsEnabled(OP_ID_DISPATCH) || - (roc_device_.info().queueProperties_ & CL_QUEUE_PROFILING_ENABLE)) { + if (activity_prof::IsEnabled(OP_ID_DISPATCH) || profiling_) { packet->reserved2 = activity_prof::correlation_id; // Get active signal for current dispatch if profiling is necessary packet->completion_signal = Barriers().ActiveSignal(kInitSignalValueOne, timestamp_);