From 5dd3e80b0ae8ec4a0e7652fa1ecb09c2f8df1b7f Mon Sep 17 00:00:00 2001 From: Yevhenii Havrylko Date: Fri, 27 Jun 2025 07:28:32 -0700 Subject: [PATCH 1/2] Add note about compute sanitizer for cxx.Device() --- cuda_core/cuda/core/experimental/_device.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cuda_core/cuda/core/experimental/_device.py b/cuda_core/cuda/core/experimental/_device.py index c9a786070..4aa2fdc0e 100644 --- a/cuda_core/cuda/core/experimental/_device.py +++ b/cuda_core/cuda/core/experimental/_device.py @@ -955,6 +955,13 @@ class Device: ---- Will not initialize the GPU. + Note + ---- + Internal implementation depends on the CUDA Driver API error handling, that + may cause ``compute-sanitizer`` to fail. In order to avoid this, you can use + ``--report-api-errors=no`` `compute-sanitizer argument + `__. + Parameters ---------- device_id : int, optional From 00f0a7e3b7ea36d9b2e12823abf52a9778845465 Mon Sep 17 00:00:00 2001 From: Yevhenii Havrylko Date: Fri, 27 Jun 2025 07:51:29 -0700 Subject: [PATCH 2/2] Fix pre-commit --- cuda_core/cuda/core/experimental/_device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuda_core/cuda/core/experimental/_device.py b/cuda_core/cuda/core/experimental/_device.py index 4aa2fdc0e..af07e89ab 100644 --- a/cuda_core/cuda/core/experimental/_device.py +++ b/cuda_core/cuda/core/experimental/_device.py @@ -959,7 +959,7 @@ class Device: ---- Internal implementation depends on the CUDA Driver API error handling, that may cause ``compute-sanitizer`` to fail. In order to avoid this, you can use - ``--report-api-errors=no`` `compute-sanitizer argument + ``--report-api-errors=no`` `compute-sanitizer argument `__. Parameters