{
errorReasons.emplace_back("not supported with double precision");
}
- if (GMX_GPU == GMX_GPU_OPENCL)
+ if (GMX_GPU_OPENCL)
{
errorReasons.emplace_back("not supported with OpenCL build of GROMACS");
}
- else if (GMX_GPU == GMX_GPU_NONE)
+ else if (!GMX_GPU)
{
errorReasons.emplace_back("not supported with CPU-only build of GROMACS");
}
return addMessageIfNotSupported(errorReasons, error);
}
-#if GMX_GPU != GMX_GPU_CUDA
+#if !GMX_GPU_CUDA
class GpuBonded::Impl
{
void GpuBonded::clearEnergies() {}
-#endif /* GMX_GPU != GMX_GPU_CUDA */
+#endif // !GMX_GPU_CUDA
} // namespace gmx