Refactor tracking of GPU short-range work/skipping
[alexxy/gromacs.git] / src / gromacs / listed_forces / gpubonded_impl.cu
index 065e88e253b049c5b08da31af00a82da6d2fe02d..d269c6918bcf6757f204f2dd58b2e1b049e6aa84 100644 (file)
@@ -266,6 +266,7 @@ GpuBonded::Impl::launchEnergyTransfer()
     // TODO should wrap with ewcLAUNCH_GPU
     GMX_ASSERT(haveInteractions_, "No GPU bonded interactions, so no energies will be computed, so transfer should not be called");
 
+    // TODO add conditional on whether there has been any compute (and make sure host buffer doesn't contain garbage)
     float *h_vTot   = vTot_.data();
     copyFromDeviceBuffer(h_vTot, &d_vTot_,
                          0, F_NRE,