mirror of https://github.com/lammps/lammps.git
explicitly request OpenCL version 1.2 compatibility when compiling GPU package kernels for OpenCL
This commit is contained in:
parent
75d63df4e0
commit
cd6b23d104
|
@ -237,7 +237,7 @@ int DeviceT::set_ocl_params(char *ocl_vendor) {
|
||||||
" -DBLOCK_CELL_ID="+params[11]+
|
" -DBLOCK_CELL_ID="+params[11]+
|
||||||
" -DMAX_BIO_SHARED_TYPES="+params[12];
|
" -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;
|
std::string(OCL_PRECISION_COMPILE)+" "+_ocl_vendor_string;
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue