mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
performance(ocl): verify tracingInProgress after checking for tracing support
Related-To: NEO-7958 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
260003caa8
commit
33e0eabe91
@@ -33,7 +33,7 @@ inline thread_local bool tracingInProgress = false;
|
||||
bool isHostSideTracingEnabled_##name = false; \
|
||||
bool currentlyTracedCall = false; \
|
||||
HostSideTracing::name##Tracer tracer_##name; \
|
||||
if ((false == HostSideTracing::tracingInProgress) && TRACING_GET_ENABLED_BIT(HostSideTracing::tracingState.load(std::memory_order_acquire))) { \
|
||||
if (TRACING_GET_ENABLED_BIT(HostSideTracing::tracingState.load(std::memory_order_acquire)) && (false == HostSideTracing::tracingInProgress)) { \
|
||||
HostSideTracing::tracingInProgress = true; \
|
||||
currentlyTracedCall = true; \
|
||||
isHostSideTracingEnabled_##name = HostSideTracing::addTracingClient(); \
|
||||
|
||||
Reference in New Issue
Block a user