Unify gpu_upload_shiftvec(...) function in NBNXM
[alexxy/gromacs.git] / src / gromacs / nbnxm / cuda / nbnxm_cuda_data_mgmt.cu
index be674962d6c97edaa4daefa4f3cc5a502bbaee6a..1edb0b8797ee2271298a68863e1faec3313212fc 100644 (file)
@@ -98,27 +98,6 @@ void gpu_init_platform_specific(NbnxmGpu* /* nb */)
     cuda_set_cacheconfig();
 }
 
-void gpu_upload_shiftvec(NbnxmGpu* nb, const nbnxn_atomdata_t* nbatom)
-{
-    NBAtomData*         adat        = nb->atdat;
-    const DeviceStream& localStream = *nb->deviceStreams[InteractionLocality::Local];
-
-    /* only if we have a dynamic box */
-    if (nbatom->bDynamicBox || !adat->shiftVecUploaded)
-    {
-        static_assert(sizeof(adat->shiftVec[0]) == sizeof(nbatom->shift_vec[0]),
-                      "Sizes of host- and device-side shift vectors should be the same.");
-        copyToDeviceBuffer(&adat->shiftVec,
-                           reinterpret_cast<const Float3*>(nbatom->shift_vec.data()),
-                           0,
-                           SHIFTS,
-                           localStream,
-                           GpuApiCallBehavior::Async,
-                           nullptr);
-        adat->shiftVecUploaded = true;
-    }
-}
-
 void gpu_free(NbnxmGpu* nb)
 {
     if (nb == nullptr)