From 2ed57dc873bf6a1bcfcd1c2edaa2fbc59be93e27 Mon Sep 17 00:00:00 2001 From: foreman Date: Fri, 30 Jan 2015 18:24:21 -0500 Subject: [PATCH] P4 to Git Change 1117184 by gandryey@gera-dev-w7 on 2015/01/30 18:01:14 ECR #304775 - Remove atomic update for the event status Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#66 edit [ROCm/clr commit: 256f885c07b5675e86ee4a75e0bda16b3886e6c4] --- projects/clr/rocclr/runtime/platform/command.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/projects/clr/rocclr/runtime/platform/command.cpp b/projects/clr/rocclr/runtime/platform/command.cpp index 98f13d014b..5ced2fe631 100644 --- a/projects/clr/rocclr/runtime/platform/command.cpp +++ b/projects/clr/rocclr/runtime/platform/command.cpp @@ -88,10 +88,7 @@ Event::setStatus(cl_int status, uint64_t timeStamp) timeStamp = recordProfilingInfo(status, timeStamp); } - if (!make_atomic(status_).compareAndSet(currentStatus, status)) { - // Somebody else beat us to it, let them deal with the release/signal. - return false; - } + status_ = status; if (callbacks_ != (CallBackEntry*)0) { processCallbacks(status);