explicitly request OpenCL version 1.2 compatibility when compiling GPU package kernels for OpenCL

This commit is contained in:
Axel Kohlmeyer 2019-03-22 09:50:31 -04:00
parent 75d63df4e0
commit cd6b23d104
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ int DeviceT::set_ocl_params(char *ocl_vendor) {
" -DBLOCK_CELL_ID="+params[11]+
" -DMAX_BIO_SHARED_TYPES="+params[12];
}
_ocl_compile_string="-cl-fast-relaxed-math -cl-mad-enable "+std::string(OCL_INT_TYPE)+" "+
_ocl_compile_string="-cl-std=CL1.2 -cl-fast-relaxed-math -cl-mad-enable "+std::string(OCL_INT_TYPE)+" "+
std::string(OCL_PRECISION_COMPILE)+" "+_ocl_vendor_string;
#endif
return 0;