From ca8ca0bc35f78bc3dab7dad02e59891a5a1c8c99 Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Mon, 18 Nov 2024 11:29:45 -0500 Subject: [PATCH] SWDEV-494231 - Revert TS optimization Runtime may use checkGpuTime() for the wait and not just for the GPU time queries. Hence, the call can't be skipped if profiling isn't enabled. More changes are required for this optimization. Change-Id: I79e8918312e755d75f0d26685f2fdc604a8ffb18 [ROCm/clr commit: e2eeb20c00c9fbd81741aa5d106988280f6a61ab] --- projects/clr/rocclr/device/rocm/rocvirtual.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/projects/clr/rocclr/device/rocm/rocvirtual.cpp b/projects/clr/rocclr/device/rocm/rocvirtual.cpp index edbabd0ca2..f5957f6851 100644 --- a/projects/clr/rocclr/device/rocm/rocvirtual.cpp +++ b/projects/clr/rocclr/device/rocm/rocvirtual.cpp @@ -127,9 +127,6 @@ static unsigned extractAqlBits(unsigned v, unsigned pos, unsigned width) { // ================================================================================================ void Timestamp::checkGpuTime() { - if (amd::IS_HIP && !amd::activity_prof::IsEnabled(OP_ID_DISPATCH)) { - return; - } amd::ScopedLock s(lock_); if (HwProfiling()) { uint64_t start = std::numeric_limits::max();