Skip to content

Commit 70fa971

Browse files
performance(ocl): verify tracingInProgress after checking for tracing support
Related-To: NEO-7958 Signed-off-by: Mateusz Jablonski <[email protected]> Source: 33e0eab
1 parent 42e902d commit 70fa971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opencl/source/tracing/tracing_notify.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ inline thread_local bool tracingInProgress = false;
3333
bool isHostSideTracingEnabled_##name = false; \
3434
bool currentlyTracedCall = false; \
3535
HostSideTracing::name##Tracer tracer_##name; \
36-
if ((false == HostSideTracing::tracingInProgress) && TRACING_GET_ENABLED_BIT(HostSideTracing::tracingState.load(std::memory_order_acquire))) { \
36+
if (TRACING_GET_ENABLED_BIT(HostSideTracing::tracingState.load(std::memory_order_acquire)) && (false == HostSideTracing::tracingInProgress)) { \
3737
HostSideTracing::tracingInProgress = true; \
3838
currentlyTracedCall = true; \
3939
isHostSideTracingEnabled_##name = HostSideTracing::addTracingClient(); \

0 commit comments

Comments
 (0)