From 2274fb951eb11e092807dd440fccfe2b6cc348c9 Mon Sep 17 00:00:00 2001 From: foreman Date: Fri, 13 Nov 2015 19:41:35 -0500 Subject: [PATCH] P4 to Git Change 1211277 by gandryey@gera-w8 on 2015/11/13 18:35:50 SWDEV-53069 - Forum[170333]: clSetUserEventStatus returning bad CL_SUCCESS - Return error if setStatus wasn't successful Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_event.cpp#9 edit [ROCm/clr commit: cbdb9fe07084da38d9e7394412747ab73f8a3c98] --- projects/clr/opencl/api/opencl/amdocl/cl_event.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/clr/opencl/api/opencl/amdocl/cl_event.cpp b/projects/clr/opencl/api/opencl/amdocl/cl_event.cpp index fb5037bf35..7198d9ce83 100644 --- a/projects/clr/opencl/api/opencl/amdocl/cl_event.cpp +++ b/projects/clr/opencl/api/opencl/amdocl/cl_event.cpp @@ -290,7 +290,9 @@ RUNTIME_ENTRY(cl_int, clSetUserEventStatus, ( return CL_INVALID_VALUE; } - as_amd(event)->setStatus(execution_status); + if (!as_amd(event)->setStatus(execution_status)) { + return CL_INVALID_OPERATION; + } return CL_SUCCESS; } RUNTIME_EXIT