Skip to content

Commit

Permalink
JNI: Hotfix on testGetCudaRuntimeInfo (#8701)
Browse files Browse the repository at this point in the history
A hot fix on the test for Java APIs which are used to get CUDA runtime information

Authors:
  - Alfred Xu (https://github.com/sperlingxx)

Approvers:
  - pxLi (https://github.com/pxLi)
  - https://github.com/GaryShen2008

URL: #8701
  • Loading branch information
sperlingxx authored Jul 9, 2021
1 parent 73df850 commit ecbec81
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions java/src/test/java/ai/rapids/cudf/CudaTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ public class CudaTest {

@Test
public void testGetCudaRuntimeInfo() {
assert Cuda.getDriverVersion() >= Cuda.getRuntimeVersion();
assert Cuda.getRuntimeVersion() > 1000;
// The driver version is not necessarily larger than runtime version. Drivers of previous
// version are also able to support runtime of later version, only if they support same
// kinds of computeModes.
assert Cuda.getDriverVersion() >= 1000;
assert Cuda.getRuntimeVersion() >= 1000;
assertEquals(Cuda.getNativeComputeMode(), Cuda.getComputeMode().nativeId);
}

Expand Down

0 comments on commit ecbec81

Please sign in to comment.