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

Exclude some tests from running with the compute sanitizer #13872

Merged
merged 4 commits into from
Aug 15, 2023
Merged
Changes from 1 commit
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
Next Next commit
Exclude some tests from running with sanitizer
Signed-off-by: Liangcai Li <[email protected]>
firestarman committed Aug 14, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 3e3668f23c548c551ce95b0c8e4e98c04edf5541
2 changes: 2 additions & 0 deletions java/src/test/java/ai/rapids/cudf/CudaTest.java
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@

package ai.rapids.cudf;

import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -33,6 +34,7 @@ public void testGetCudaRuntimeInfo() {
assertEquals(Cuda.getNativeComputeMode(), Cuda.getComputeMode().nativeId);
}

@Tag("noSanitizer")
@Test
public void testCudaException() {
assertThrows(CudaException.class, () -> {
11 changes: 11 additions & 0 deletions java/src/test/java/ai/rapids/cudf/RmmTest.java
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
@@ -187,6 +188,7 @@ public void testScopedMaxOutstandingNegative(int rmmAllocMode) {
}
}

@Tag("noSanitizer")
@ParameterizedTest
@ValueSource(ints = {
RmmAllocationMode.CUDA_DEFAULT,
@@ -257,6 +259,7 @@ public void onDeallocated(long sizeDeallocated) {
assertEquals(1024, totalDeallocated.get());
}

@Tag("noSanitizer")
@Test
public void testSetEventHandlerTwice() {
Rmm.initialize(RmmAllocationMode.CUDA_DEFAULT, Rmm.logToStderr(), 0L);
@@ -278,6 +281,7 @@ public boolean onAllocFailure(long sizeRequested, int retryCount) {
assertThrows(RmmException.class, () -> Rmm.setEventHandler(otherHandler));
}

@Tag("noSanitizer")
@Test
public void testClearEventHandler() {
Rmm.initialize(RmmAllocationMode.CUDA_DEFAULT, Rmm.logToStderr(), 0L);
@@ -304,6 +308,7 @@ public boolean onAllocFailure(long sizeRequested, int retryCount) {
}
}

@Tag("noSanitizer")
@Test
public void testAllocOnlyThresholds() {
final AtomicInteger allocInvocations = new AtomicInteger(0);
@@ -367,6 +372,7 @@ public void onDeallocThreshold(long totalAllocSize) {
assertEquals(0, deallocInvocations.get());
}

@Tag("noSanitizer")
@Test
public void testThresholds() {
final AtomicInteger allocInvocations = new AtomicInteger(0);
@@ -451,6 +457,7 @@ public void onDeallocThreshold(long totalAllocSize) {
assertEquals(2, deallocInvocations.get());
}

@Tag("noSanitizer")
@Test
public void testExceptionHandling() {
Rmm.initialize(RmmAllocationMode.POOL, Rmm.logToStderr(), 1024 * 1024L);
@@ -511,6 +518,7 @@ public void testThreadAutoDeviceSetup() throws Exception {
}
}

@Tag("noSanitizer")
@ParameterizedTest
@ValueSource(ints = {
RmmAllocationMode.CUDA_DEFAULT,
@@ -523,6 +531,7 @@ public void testSetDeviceThrowsAfterRmmInit(int rmmAllocMode) {
Cuda.autoSetDevice();
}

@Tag("noSanitizer")
@Test
public void testPoolSize() {
Rmm.initialize(RmmAllocationMode.POOL, Rmm.logToStderr(), 1024);
@@ -535,6 +544,7 @@ public void testPoolSize() {
}
}

@Tag("noSanitizer")
@Test
public void testCudaAsyncMemoryResourceSize() {
try {
@@ -553,6 +563,7 @@ public void testCudaAsyncMemoryResourceSize() {
}
}

@Tag("noSanitizer")
@Test
public void testCudaAsyncIsIncompatibleWithManaged() {
assertThrows(IllegalArgumentException.class,
1 change: 1 addition & 0 deletions java/src/test/java/ai/rapids/cudf/TableTest.java
Original file line number Diff line number Diff line change
@@ -40,6 +40,7 @@
import org.apache.parquet.schema.GroupType;
import org.apache.parquet.schema.MessageType;
import org.apache.parquet.schema.OriginalType;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

import java.io.*;
Original file line number Diff line number Diff line change
@@ -18,11 +18,13 @@

package ai.rapids.cudf;

import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

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

@Tag("noSanitizer")
public class UnsafeMemoryAccessorTest {
@Test
public void testAllocate() {