Package edu.wpi.grip.core.cuda
Class CudaVerifier
- java.lang.Object
-
- edu.wpi.grip.core.cuda.CudaVerifier
-
public class CudaVerifier extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CudaVerifier(AccelerationMode accelerationMode, CudaDetector cudaDetector, java.util.Properties cudaProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
verify()
Verifies that, if GRIP is using CUDA acceleration, a compatible CUDA runtime is available.void
verifyCuda()
Verifies the presence of a CUDA runtime, if required by the GRIP runtime, and exits the app if no compatible CUDA runtime is available.
-
-
-
Constructor Detail
-
CudaVerifier
@Inject public CudaVerifier(AccelerationMode accelerationMode, CudaDetector cudaDetector, @Named("cudaProperties") java.util.Properties cudaProperties)
-
-
Method Detail
-
verifyCuda
public void verifyCuda()
Verifies the presence of a CUDA runtime, if required by the GRIP runtime, and exits the app if no compatible CUDA runtime is available.
-
verify
public boolean verify()
Verifies that, if GRIP is using CUDA acceleration, a compatible CUDA runtime is available. If GRIP is not using CUDA acceleration, this will always returntrue
.- Returns:
- false if GRIP is using CUDA acceleration but no compatible CUDA runtime is available, true otherwise
-
-