Improved diagnostics when PME cannot run on GPUs
[alexxy/gromacs.git] / src / gromacs / ewald / tests / pmetestcommon.cpp
index 6fa0627777e4bdff414a3daf1f51aee713d37564..7475de602e6d2ea4d4373274321b00b353bb35ad 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2016,2017,2018, by the GROMACS development team, led by
+ * Copyright (c) 2016,2017,2018,2019, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -85,7 +85,8 @@ bool pmeSupportsInputForMode(const gmx_hw_info_t &hwinfo,
             break;
 
         case CodePath::GPU:
-            implemented = (pme_gpu_supports_build(hwinfo, nullptr) &&
+            implemented = (pme_gpu_supports_build(nullptr) &&
+                           pme_gpu_supports_hardware(hwinfo, nullptr) &&
                            pme_gpu_supports_input(*inputRec, mtop, nullptr));
             break;