Skip to content

Commit

Permalink
cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
rongou committed Sep 25, 2021
1 parent 3153d0a commit ea39276
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions java/src/test/java/ai/rapids/cudf/RmmTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;

import static ai.rapids.cudf.Cuda.DEFAULT_STREAM;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
Expand Down Expand Up @@ -440,10 +439,11 @@ public void testCudaAsyncIsIncompatibleWithManaged() {
@Test
public void testCudaMemoryBuffer() {
Rmm.initialize(RmmAllocationMode.ARENA, false, 1024);
try (CudaMemoryBuffer one = Rmm.allocCuda(512, DEFAULT_STREAM);
CudaMemoryBuffer two = Rmm.allocCuda(1024, DEFAULT_STREAM)) {
try (CudaMemoryBuffer one = CudaMemoryBuffer.allocate(512);
CudaMemoryBuffer two = CudaMemoryBuffer.allocate(1024)) {
assertEquals(512, one.length);
assertEquals(1024, two.length);
assertEquals(0, Rmm.getTotalBytesAllocated());
}
}

Expand Down

0 comments on commit ea39276

Please sign in to comment.