Simplified uniform GPU selection in CMake
[alexxy/gromacs.git] / src / gromacs / ewald / pme_only.cpp
index 1a33cc8ed06e55e7604ff69b2af43b919c212ef9..de9386f63979df36dce8bf7f62fe8149c5739180 100644 (file)
 
 /*! \brief environment variable to enable GPU P2P communication */
 static const bool c_enableGpuPmePpComms =
-        (getenv("GMX_GPU_PME_PP_COMMS") != nullptr) && GMX_THREAD_MPI && (GMX_GPU == GMX_GPU_CUDA);
+        GMX_GPU_CUDA && GMX_THREAD_MPI && (getenv("GMX_GPU_PME_PP_COMMS") != nullptr);
 
 /*! \brief Master PP-PME communication data structure */
 struct gmx_pme_pp