Change error message when attempting to offload to nonexistent GPUs
authorKevin Boyd <kevin.boyd@uconn.edu>
Thu, 4 Jul 2019 22:17:27 +0000 (18:17 -0400)
committerArtem Zhmurov <zhmurov@gmail.com>
Fri, 5 Jul 2019 17:15:32 +0000 (19:15 +0200)
A user could interpret the error as no interactions detected rather
than no GPUs

Change-Id: Iedcc4555313edbb84a504bf01afc99c15eb4fdcb

src/gromacs/mdrun/runner.cpp

index db0376b1c729ea177612dba2ac8b266cad215f9d..b21cf04fdf19495c69bdca42fac98f203f1c1543 100644 (file)
@@ -1064,11 +1064,11 @@ int Mdrunner::mdrunner()
             }
             else if (nonbondedTarget == TaskTarget::Gpu)
             {
-                gmx_fatal(FARGS, "Cannot run short-ranged nonbonded interactions on a GPU because there is none detected.");
+                gmx_fatal(FARGS, "Cannot run short-ranged nonbonded interactions on a GPU because no GPU is detected.");
             }
             else if (bondedTarget == TaskTarget::Gpu)
             {
-                gmx_fatal(FARGS, "Cannot run bonded interactions on a GPU because there is none detected.");
+                gmx_fatal(FARGS, "Cannot run bonded interactions on a GPU because no GPU is detected.");
             }
         }
     }
@@ -1083,7 +1083,7 @@ int Mdrunner::mdrunner()
             }
             else if (pmeTarget == TaskTarget::Gpu)
             {
-                gmx_fatal(FARGS, "Cannot run PME on a GPU because there is none detected.");
+                gmx_fatal(FARGS, "Cannot run PME on a GPU because no GPU is detected.");
             }
         }
     }