diff --git a/cmake/Modules/Packages/GPU.cmake b/cmake/Modules/Packages/GPU.cmake index 9524324409..7bb9723485 100644 --- a/cmake/Modules/Packages/GPU.cmake +++ b/cmake/Modules/Packages/GPU.cmake @@ -3,7 +3,9 @@ set(GPU_SOURCES ${GPU_SOURCES_DIR}/gpu_extra.h ${GPU_SOURCES_DIR}/fix_gpu.h ${GPU_SOURCES_DIR}/fix_gpu.cpp ${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) set(GPU_API "opencl" CACHE STRING "API used by GPU package") diff --git a/lib/gpu/lal_amoeba.cu b/lib/gpu/lal_amoeba.cu index 6f77fb932f..84a8495dfb 100644 --- a/lib/gpu/lal_amoeba.cu +++ b/lib/gpu/lal_amoeba.cu @@ -158,7 +158,7 @@ _texture( q_tex,int2); 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) \ if (t_per_atom>1) { \ simd_reduce_add3(t_per_atom, red_acc, offset, tid, f.x, f.y, f.z); \ diff --git a/lib/gpu/lal_hippo.cu b/lib/gpu/lal_hippo.cu index 91793747ef..a5fca5cc80 100644 --- a/lib/gpu/lal_hippo.cu +++ b/lib/gpu/lal_hippo.cu @@ -158,7 +158,7 @@ _texture( q_tex,int2); 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) \ if (t_per_atom>1) { \ simd_reduce_add3(t_per_atom, red_acc, offset, tid, f.x, f.y, f.z); \