diff options
Diffstat (limited to 'opencl')
-rw-r--r-- | opencl/source/openclwrapper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx index 5574d2c3fa09..1fc7597b7263 100644 --- a/opencl/source/openclwrapper.cxx +++ b/opencl/source/openclwrapper.cxx @@ -436,7 +436,7 @@ bool buildProgramFromBinary(const char* buildOption, GPUEnv* gpuInfo, const char cl_int binary_status; gpuInfo->mpArryPrograms[idx] = clCreateProgramWithBinary( gpuInfo->mpContext,numDevices, - pArryDevsID.get(), length.get(), (const unsigned char**) pBinary.get(), + pArryDevsID.get(), length.get(), const_cast<const unsigned char**>(pBinary.get()), &binary_status, &clStatus ); if(clStatus != CL_SUCCESS) { |