# CUDA.compute\_sanitizer() method not defined

**URL:** <https://discourse.julialang.org/t/cuda-compute-sanitizer-method-not-defined/116888>\
**Category:** GPU\
**Tags:** question\
**Created:** [July 10, 2024, 10:24pm UTC](https://discourse.julialang.org/t/cuda-compute-sanitizer-method-not-defined/116888 "2024-07-10T22:24:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexpan5](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alexpan5/32/53067_2.png) [@alexpan5](https://discourse.julialang.org/u/alexpan5)\
**Post date:** [July 10, 2024, 10:24pm UTC](https://discourse.julialang.org/t/cuda-compute-sanitizer-method-not-defined/116888/1 "2024-07-10T22:24:08Z")

</div>

I want to use [compute-sanitizer](https://cuda.juliagpu.org/stable/development/debugging/#compute-sanitizer) to look into a memory error, but when I run:

```julia
julia> using CUDA

julia> CUDA.compute_sanitizer()

```

I just get ERROR: UndefVarError: `compute_sanitizer` not defined. `CUDA.compute_sanitizer_cmd()` and `CUDA.run_compute_sanitizer()` aren’t defined for me either.

The documentation says “To facilitate using the compute sanitizer, CUDA.jl ships the tool as part of its artifacts,” which to my understanding, means I shouldn’t have to install anything outside of CUDA.jl in order to use the tool, but please correct me if I’m wrong.

If it helps, this is my versioninfo:

```julia
julia> CUDA.versioninfo()
CUDA runtime 12.5, artifact installation
CUDA driver 12.4
NVIDIA driver 551.78.0

CUDA libraries: 
- CUBLAS: 12.5.3
- CURAND: 10.3.6
- CUFFT: 11.2.3
- CUSOLVER: 11.6.3
- CUSPARSE: 12.5.1
- CUPTI: 2024.2.1 (API 23.0.0)
- NVML: 12.0.0+550.54.14

Julia packages: 
- CUDA: 5.4.3
- CUDA_Driver_jll: 0.9.1+1
- CUDA_Runtime_jll: 0.14.1+0

Toolchain:
- Julia: 1.10.4
- LLVM: 15.0.7

Preferences:
- CUDA_Runtime_jll.version: 12.5

1 device:
  0: NVIDIA GeForce RTX 3050 Laptop GPU (sm_86, 3.871 GiB / 4.000 GiB available)

julia> versioninfo()
Julia Version 1.10.4
Commit 48d4fd48430 (2024-06-04 10:41 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 16 × AMD Ryzen 7 5800H with Radeon Graphics
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)

```

To add on, when I run

```julia
$ find ~/.julia/artifacts -name "compute-sanitizer"

```

I don’t find anything.

Someone I’m working with also has the same issue, so this may not just be a one-off issue. Does anybody have any ideas about this?

---

<div class="post-metadata">

**Author:** ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Post date:** [July 11, 2024, 10:18am UTC](https://discourse.julialang.org/t/cuda-compute-sanitizer-method-not-defined/116888/2 "2024-07-11T10:18:31Z")

</div>

Ah, the documentation is out of date here. That piece should be removed, or updated to suggest using CUDA\_SDK\_jll which does still provide the `compute-sanitizer` binary (see e.g. how it’s done [in our test suite](https://github.com/JuliaGPU/CUDA.jl/blob/71311afa35463f3fce09ed73bae66f8810b5e821/test/runtests.jl#L185-L200)). Could you open an issue, or even better, a PR?
