Simplified uniform GPU selection in CMake
[alexxy/gromacs.git] / src / gromacs / gpu_utils / tests / device_stream_manager.cpp
index 3698f290a80b6c0e041cdc34851f1b77b7aeb466..149166920155ac1e3af8bd9a2f57b6e2d71249b2 100644 (file)
@@ -71,7 +71,7 @@ const EnumerationArray<DeviceStreamType, std::string> c_deviceStreamNames = {
 
 /*! \brief Non-GPU builds return nullptr instead of streams,
  * so we have to expect that in such build configurations. */
-const bool c_canExpectValidStreams = (GMX_GPU != GMX_GPU_NONE);
+constexpr bool c_canExpectValidStreams = (GMX_GPU != 0);
 
 //! Helper function to implement readable testing
 void expectValidStreams(DeviceStreamManager* manager, std::initializer_list<DeviceStreamType> types)