Access the device status directly, remove the getter
[alexxy/gromacs.git] / src / gromacs / mdlib / tests / settletestrunners.cu
index 6bbf8eb5e3a8e01d8c649b88ddb8626f7cf2e814..930f4cb5ba5c18fb10701f10dde565bc3a8811ca 100644 (file)
@@ -52,7 +52,7 @@
 #include <vector>
 
 #include "gromacs/gpu_utils/devicebuffer.cuh"
-#include "gromacs/hardware/device_management.h"
+#include "gromacs/hardware/device_information.h"
 #include "gromacs/mdlib/settle_gpu.cuh"
 #include "gromacs/utility/unique_cptr.h"
 
@@ -82,9 +82,6 @@ void applySettleGpu(SettleTestData*  testData,
     // there is a CUDA-capable device available.
     GMX_RELEASE_ASSERT(GMX_GPU_CUDA, "CUDA version of SETTLE was called from non-CUDA build.");
 
-    // TODO: Here we should check that at least 1 suitable GPU is available
-    GMX_RELEASE_ASSERT(canPerformGpuDetection(), "Can't detect CUDA-capable GPUs.");
-
     DeviceInformation   deviceInfo;
     const DeviceContext deviceContext(deviceInfo);
     const DeviceStream  deviceStream(deviceContext, DeviceStreamPriority::Normal, false);