Access the device status directly, remove the getter
[alexxy/gromacs.git] / src / gromacs / gpu_utils / tests / typecasts.cpp
index 319813828bfc735cb7236568606b7522546df099..0246d4f106bbad06f96637b61dacdaade02d67a8 100644 (file)
@@ -48,7 +48,7 @@
 
 #    include <gtest/gtest.h>
 
-#    include "gromacs/gpu_utils/gpu_testutils.h"
+#    include "gromacs/hardware/device_management.h"
 #    include "gromacs/utility/exceptions.h"
 
 #    include "testutils/testasserts.h"
@@ -74,7 +74,7 @@ TEST(GpuDataTypesCompatibilityTest, RVecAndFloat3OnHost)
 
 TEST(GpuDataTypesCompatibilityTest, RVecAndFloat3OnDevice)
 {
-    if (canComputeOnGpu())
+    if (canComputeOnDevice())
     {
         std::vector<RVec> rVecOutput(rVecInput.size());
         convertRVecToFloat3OnDevice(rVecOutput, rVecInput);