Skip to content

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

Closed
@sperlingxx

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.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions