Use workload data structures for GPU halo exchange triggers
[alexxy/gromacs.git] / src / gromacs / mdrun / md.cpp
index e2f5581f3a7f74f7258c797e2b4194051a5f666f..bf7aa914beecb3a6b20348dcadd6c8c84070a851 100644 (file)
@@ -850,7 +850,7 @@ void gmx::LegacySimulator::do_md()
         }
 
         // Allocate or re-size GPU halo exchange object, if necessary
-        if (bNS && havePPDomainDecomposition(cr) && simulationWork.useGpuHaloExchange && useGpuForNonbonded)
+        if (bNS && havePPDomainDecomposition(cr) && simulationWork.useGpuHaloExchange)
         {
             GMX_RELEASE_ASSERT(fr->deviceStreamManager != nullptr,
                                "GPU device manager has to be initialized to use GPU "