Enable separate PME GPU rank
[alexxy/gromacs.git] / src / gromacs / taskassignment / resourcedivision.cpp
index aae46bd895fc5e92756932002bf89165379372b4..253e2b54bf8ecc9c6feae9c2c292cf202a9cc448 100644 (file)
@@ -354,15 +354,12 @@ int get_nthreads_mpi(const gmx_hw_info_t    *hwinfo,
                            pme_gpu_supports_input(inputrec, nullptr),
                            "PME can't be on GPUs unless we are using PME");
 
-        // A single rank is all that is supported with PME on GPUs
+        // PME on GPUs supports a single PME rank with PP running on the same or few other ranks.
+        // For now, let's treat separate PME GPU rank as opt-in.
         if (hw_opt->nthreads_tmpi < 1)
         {
             return 1;
         }
-        if (hw_opt->nthreads_tmpi > 1)
-        {
-            gmx_fatal(FARGS, "PME on GPUs is only supported with a single rank");
-        }
     }
 
     {