Simplified uniform GPU selection in CMake
[alexxy/gromacs.git] / src / gromacs / ewald / pme_gpu_constants.h
index 5bfe1c3ddef33bc72622e297d4505cbeb56a94b3..d2503cb948ab84e6e8d13badf25a122544c48797 100644 (file)
@@ -53,7 +53,7 @@
 
 #include "config.h"
 
-#if GMX_GPU == GMX_GPU_CUDA
+#if GMX_GPU_CUDA
 #    include "gromacs/gpu_utils/cuda_arch_utils.cuh" // for warp_size
 #endif
 
@@ -143,7 +143,7 @@ constexpr int c_solveMaxWarpsPerBlock = 8;
 //! Gathering max block width in warps - picked empirically among 2, 4, 8, 16 for max. occupancy and min. runtime
 constexpr int c_gatherMaxWarpsPerBlock = 4;
 
-#if GMX_GPU == GMX_GPU_CUDA
+#if GMX_GPU_CUDA
 /* All the fields below are dependent on warp_size and should
  * ideally be removed from the device-side code, as we have to
  * do that for OpenCL already.
@@ -164,6 +164,6 @@ static constexpr int c_gatherMaxThreadsPerBlock = c_gatherMaxWarpsPerBlock * war
 //! Gathering min blocks per CUDA multiprocessor
 static constexpr int c_gatherMinBlocksPerMP = GMX_CUDA_MAX_THREADS_PER_MP / c_gatherMaxThreadsPerBlock;
 
-#endif // GMX_GPU == GMX_GPU_CUDA
+#endif // GMX_GPU_CUDA
 
 #endif