From 39509855d038be71e177ab6ceedbbd60e67d38fb Mon Sep 17 00:00:00 2001 From: Kevin Boyd Date: Thu, 4 Jul 2019 18:17:27 -0400 Subject: [PATCH] Change error message when attempting to offload to nonexistent GPUs A user could interpret the error as no interactions detected rather than no GPUs Change-Id: Iedcc4555313edbb84a504bf01afc99c15eb4fdcb --- src/gromacs/mdrun/runner.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gromacs/mdrun/runner.cpp b/src/gromacs/mdrun/runner.cpp index db0376b1c7..b21cf04fdf 100644 --- a/src/gromacs/mdrun/runner.cpp +++ b/src/gromacs/mdrun/runner.cpp @@ -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."); } } } -- 2.22.0