Simplified uniform GPU selection in CMake
[alexxy/gromacs.git] / src / gromacs / hardware / printhardware.cpp
index e729876458ef07910a186f1bf7ce578a7db77c18..4283441c0e2dd90f6696323800b9e46d7fb4f6c0 100644 (file)
@@ -61,7 +61,7 @@
 #include "gromacs/utility/sysinfo.h"
 
 //! Constant used to help minimize preprocessed code
-static const bool bGPUBinary = GMX_GPU != GMX_GPU_NONE;
+static constexpr bool bGPUBinary = (GMX_GPU != 0);
 
 /*! \internal \brief
  * Returns the GPU information text, one GPU per line.