Skip to content

Commit

Permalink
revert JNI
Browse files Browse the repository at this point in the history
  • Loading branch information
sperlingxx committed Apr 13, 2022
1 parent 5a45016 commit 56d00d7
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions java/src/test/java/ai/rapids/cudf/CudaTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2022, NVIDIA CORPORATION.
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,7 +18,7 @@

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertEquals;

public class CudaTest {

Expand All @@ -32,17 +32,4 @@ public void testGetCudaRuntimeInfo() {
assertEquals(Cuda.getNativeComputeMode(), Cuda.getComputeMode().nativeId);
}

@Test
public void testCudaException() {
assertThrows(CudaException.class, () -> {
try {
Cuda.memset(Long.MAX_VALUE, (byte) 0, 1024);
} catch (CudaException ex) {
assertEquals(CudaException.CudaError.cudaErrorInvalidValue, ex.cudaError);
assertFalse(ex.isFatal());
throw ex;
}
}
);
}
}

0 comments on commit 56d00d7

Please sign in to comment.