Attempted to resolve the address space change issue when casting for OpenCL 2.0 (ref: https://www.intel.com/content/www/us/en/developer/articles/technical/the-generic-address-space-in-opencl-20.html#06_address_space_casting)
This commit is contained in:
@ -386,6 +386,9 @@ int DeviceT::set_ocl_params(std::string s_config, const std::string &extra_args)
|
||||
}
|
||||
|
||||
_ocl_compile_string="-cl-mad-enable ";
|
||||
#ifdef CL_VERSION_2_0
|
||||
_ocl_compile_string+="-cl-std=CL2.0 ";
|
||||
#endif
|
||||
if (params[4]!="0") _ocl_compile_string+="-cl-fast-relaxed-math ";
|
||||
_ocl_compile_string+=std::string(OCL_INT_TYPE)+" "+
|
||||
std::string(OCL_PRECISION_COMPILE);
|
||||
|
||||
Reference in New Issue
Block a user