[BUG] [JNI] CudaTest.testCudaException
will not throw cudaErrorInvalidValue
expectedly under certain environment #15705
Closed
Description
Describe the bug
For the test case CudaTest.testCudaException
:
assertThrows(CudaException.class, () -> {
try {
Cuda.memset(Long.MAX_VALUE, (byte) 0, 1024);
} catch (CudaFatalException ignored) {
} catch (CudaException ex) {
assertEquals(CudaException.CudaError.cudaErrorInvalidValue, ex.getCudaError());
throw ex;
}
}
);
It seems the CUDA API cudaMemsetAsync
will not throw cudaErrorInvalidValue
under certain environment (like ARM arch). Therefore, this test case might be failed under certain environment. Due to the instability, the test is skipped if SANITIZER is ON for now.