cudf icon indicating copy to clipboard operation
cudf copied to clipboard

[BUG] [JNI] `CudaTest.testCudaException` will not throw `cudaErrorInvalidValue` expectedly under certain environment

Open sperlingxx opened this issue 1 year ago • 0 comments

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.

sperlingxx avatar May 09 '24 09:05 sperlingxx