diff --git a/projects/clr/opencl/api/opencl/amdocl/cl_execute.cpp b/projects/clr/opencl/api/opencl/amdocl/cl_execute.cpp index 0334f109c8..3fa99f154b 100644 --- a/projects/clr/opencl/api/opencl/amdocl/cl_execute.cpp +++ b/projects/clr/opencl/api/opencl/amdocl/cl_execute.cpp @@ -266,7 +266,7 @@ RUNTIME_ENTRY(cl_int, clEnqueueNDRangeKernel, // ndrange is now owned by command. Do not delete it! // Make sure we have memory for the command execution - cl_int result = command->validateMemory(); + cl_int result = command->captureAndValidate(); if (result != CL_SUCCESS) { delete command; return result;