Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JNI: Fix driver version assertion logic in testGetCudaRuntimeInfo [skip ci] #8701

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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