Simplified uniform GPU selection in CMake
[alexxy/gromacs.git] / src / gromacs / gpu_utils / device_context.h
index e1eb23255a1e6ce1deed171bac86ac3727e6be2f..b3044c891258f53cfc2355829eab622f82a061ff 100644 (file)
@@ -50,7 +50,7 @@
 
 #include "config.h"
 
-#if GMX_GPU == GMX_GPU_OPENCL
+#if GMX_GPU_OPENCL
 #    include "gromacs/gpu_utils/device_context_ocl.h"
 #else
 #    include "gromacs/utility/classhelpers.h"
@@ -75,6 +75,6 @@ private:
 
     GMX_DISALLOW_COPY_MOVE_AND_ASSIGN(DeviceContext);
 };
-#endif // GMX_GPU != GMX_GPU_OPENCL
+#endif // !GMX_GPU_OPENCL
 
 #endif // GMX_GPU_UTILS_DEVICE_CONTEXT_H