Wrap more device pointers in DeviceBuffer
[alexxy/gromacs.git] / src / gromacs / nbnxm / nbnxm_gpu.h
index fe836969347c3e33d2f141f3c3923eb548969efc..c3fdb36a19eaa4daf3bfbcf6d0846fca9b959cd4 100644 (file)
@@ -315,7 +315,8 @@ void nbnxn_wait_x_on_device(NbnxmGpu gmx_unused* nb) CUDA_FUNC_TERM;
  * \returns       A pointer to the force buffer in GPU memory
  */
 CUDA_FUNC_QUALIFIER
-void* getGpuForces(NbnxmGpu gmx_unused* nb) CUDA_FUNC_TERM_WITH_RETURN(nullptr);
+DeviceBuffer<gmx::RVec> getGpuForces(NbnxmGpu gmx_unused* nb)
+        CUDA_FUNC_TERM_WITH_RETURN(DeviceBuffer<gmx::RVec>{});
 
 } // namespace Nbnxm
 #endif