Fixed missing commas in the argument list of the macros in amoeba and hippo cu files, added amoeba_convolution_gpu.cpp and .h to the source file list in GPU.cmake
This commit is contained in:
@ -3,7 +3,9 @@ set(GPU_SOURCES ${GPU_SOURCES_DIR}/gpu_extra.h
|
|||||||
${GPU_SOURCES_DIR}/fix_gpu.h
|
${GPU_SOURCES_DIR}/fix_gpu.h
|
||||||
${GPU_SOURCES_DIR}/fix_gpu.cpp
|
${GPU_SOURCES_DIR}/fix_gpu.cpp
|
||||||
${GPU_SOURCES_DIR}/fix_nh_gpu.h
|
${GPU_SOURCES_DIR}/fix_nh_gpu.h
|
||||||
${GPU_SOURCES_DIR}/fix_nh_gpu.cpp)
|
${GPU_SOURCES_DIR}/fix_nh_gpu.cpp
|
||||||
|
${GPU_SOURCES_DIR}/amoeba_convolution_gpu.h
|
||||||
|
${GPU_SOURCES_DIR}/amoeba_convolution_gpu.cpp)
|
||||||
target_compile_definitions(lammps PRIVATE -DLMP_GPU)
|
target_compile_definitions(lammps PRIVATE -DLMP_GPU)
|
||||||
|
|
||||||
set(GPU_API "opencl" CACHE STRING "API used by GPU package")
|
set(GPU_API "opencl" CACHE STRING "API used by GPU package")
|
||||||
|
|||||||
@ -158,7 +158,7 @@ _texture( q_tex,int2);
|
|||||||
fieldp[ii+inum] = fp; \
|
fieldp[ii+inum] = fp; \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define store_answers_acc(f,energy,e_coul, virial, ii, inum, tid, t_per_atom \
|
#define store_answers_acc(f,energy,e_coul, virial, ii, inum, tid, t_per_atom, \
|
||||||
offset, eflag, vflag, ans, engv, ev_stride) \
|
offset, eflag, vflag, ans, engv, ev_stride) \
|
||||||
if (t_per_atom>1) { \
|
if (t_per_atom>1) { \
|
||||||
simd_reduce_add3(t_per_atom, red_acc, offset, tid, f.x, f.y, f.z); \
|
simd_reduce_add3(t_per_atom, red_acc, offset, tid, f.x, f.y, f.z); \
|
||||||
|
|||||||
@ -158,7 +158,7 @@ _texture( q_tex,int2);
|
|||||||
fieldp[ii+inum] = fp; \
|
fieldp[ii+inum] = fp; \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define store_answers_acc(f,energy,e_coul, virial, ii, inum, tid, t_per_atom \
|
#define store_answers_acc(f,energy,e_coul, virial, ii, inum, tid, t_per_atom, \
|
||||||
offset, eflag, vflag, ans, engv, ev_stride) \
|
offset, eflag, vflag, ans, engv, ev_stride) \
|
||||||
if (t_per_atom>1) { \
|
if (t_per_atom>1) { \
|
||||||
simd_reduce_add3(t_per_atom, red_acc, offset, tid, f.x, f.y, f.z); \
|
simd_reduce_add3(t_per_atom, red_acc, offset, tid, f.x, f.y, f.z); \
|
||||||
|
|||||||
Reference in New Issue
Block a user