From d8a4f92856be4d89d63748d2254acbeb05c48714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Krzemie=C5=84?= Date: Wed, 27 Nov 2024 15:35:20 +0000 Subject: [PATCH] fix: don't include perf counters in timestamp profiling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves: GSD-10387 Signed-off-by: Robert KrzemieĊ„ --- opencl/source/command_queue/hardware_interface_base.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opencl/source/command_queue/hardware_interface_base.inl b/opencl/source/command_queue/hardware_interface_base.inl index e703076b26..182d5b1f7e 100644 --- a/opencl/source/command_queue/hardware_interface_base.inl +++ b/opencl/source/command_queue/hardware_interface_base.inl @@ -42,13 +42,13 @@ inline void HardwareInterface::dispatchProfilingPerfStartCommands( LinearStream *commandStream, CommandQueue &commandQueue) { + if (hwPerfCounter != nullptr) { + GpgpuWalkerHelper::dispatchPerfCountersCommandsStart(commandQueue, *hwPerfCounter, commandStream); + } // If hwTimeStampAlloc is passed (not nullptr), then we know that profiling is enabled if (hwTimeStamps != nullptr) { GpgpuWalkerHelper::dispatchProfilingCommandsStart(*hwTimeStamps, commandStream, commandQueue.getDevice().getRootDeviceEnvironment()); } - if (hwPerfCounter != nullptr) { - GpgpuWalkerHelper::dispatchPerfCountersCommandsStart(commandQueue, *hwPerfCounter, commandStream); - } } template