diff --git a/opencl/api/opencl/amdocl/cl_program.cpp b/opencl/api/opencl/amdocl/cl_program.cpp index 0f3f2890d8..68071222f0 100644 --- a/opencl/api/opencl/amdocl/cl_program.cpp +++ b/opencl/api/opencl/amdocl/cl_program.cpp @@ -220,7 +220,7 @@ RUNTIME_ENTRY_RET(cl_program, clCreateProgramWithILKHR, ( const std::vector& devices = as_amd(context)->devices(); std::vector::const_iterator it; for (it = devices.begin(); it != devices.end(); ++it) { - if (program->addDeviceProgram(**it, il, length, true) == + if (program->addDeviceProgram(**it, il, length) == CL_OUT_OF_HOST_MEMORY) { *not_null(errcode_ret) = CL_OUT_OF_HOST_MEMORY; program->release();