Merge ssh://firefly9.ornl.gov/~/code/lammps
This commit is contained in:
@ -50,7 +50,8 @@ void NeighborShared::compile_kernels(UCL_Device &dev, const int gpu_nbor) {
|
||||
return;
|
||||
|
||||
_gpu_nbor=gpu_nbor;
|
||||
std::string flags="-cl-fast-relaxed-math -cl-mad-enable -D"+
|
||||
std::string flags="-cl-fast-relaxed-math -cl-mad-enable "+
|
||||
std::string(OCL_PRECISION_COMPILE)+" -D"+
|
||||
std::string(OCL_VENDOR);
|
||||
|
||||
if (_gpu_nbor==0) {
|
||||
|
||||
@ -255,6 +255,10 @@ typedef struct _double4 double4;
|
||||
#define ucl_ceil ceil
|
||||
#define ucl_abs fabs
|
||||
|
||||
#ifdef _DOUBLE_DOUBLE
|
||||
#define NO_HARDWARE_TRANSCENDENTALS
|
||||
#endif
|
||||
|
||||
#ifdef NO_HARDWARE_TRANSCENDENTALS
|
||||
|
||||
#define ucl_exp exp
|
||||
|
||||
Reference in New Issue
Block a user