# Unable to use CUDA from artifacts

**URL:** <https://discourse.julialang.org/t/unable-to-use-cuda-from-artifacts/86854>\
**Category:** GPU\
**Tags:** cuda\
**Created:** [September 6, 2022, 7:30pm UTC](https://discourse.julialang.org/t/unable-to-use-cuda-from-artifacts/86854 "2022-09-06T19:30:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoshi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yoshi/32/38259_2.png) [@yoshi](https://discourse.julialang.org/u/yoshi)\
**Post date:** [September 6, 2022, 7:30pm UTC](https://discourse.julialang.org/t/unable-to-use-cuda-from-artifacts/86854/1 "2022-09-06T19:30:47Z")

</div>

I’m trying to use julia in an HPC environment. I load the CUDA driver using slurm’s “module” functionality. I can see where it is in the $PATH variable. But when I go to run “pkg\> test CUDA” I get warnings saying “This version of CUDA.jl only supports NVIDIA drivers for CUDA 10.2 or higher (yours is for CUDA 9.2.0)” but nvcc --version is showing version 10.2 is loaded.

I have read that Artifacts are downloaded with Julia so that some apprpriate version of the nvidia drivers are downloaded with cuda.jl. When I run CUDA.versioninfo(), however, I get the following warning (followed by an error):  
┌ Warning: Unable to use CUDA from artifacts: Could not find or download a compatible artifact for your platform (x86\_64-linux-gnu-libgfortran4-cxx11-julia\_version+1.6.7).

I’m not sure how to check whether these packages were obtained. Ideas\>

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [September 7, 2022, 8:39am UTC](https://discourse.julialang.org/t/unable-to-use-cuda-from-artifacts/86854/2 "2022-09-07T08:39:27Z")

</div>

@maleadt may be able to best answer this question about CUDA.

Frankly, from the original title it is not obvious what the issue is, but reading the content makes it clear you are specifically interested in CUDA.

The artifacts in question originate from [GitHub - JuliaBinaryWrappers/CUDA\_jll.jl](https://github.com/JuliaBinaryWrappers/CUDA_jll.jl)

I’m confused about the error message. Is it due to the lack of network access or is it because this platform triple does is not normally one that Julia supports? Pinging @giordano to comment on that.

I would also recommend looking at this documentation:  
[https://cuda.juliagpu.org/stable/installation/overview/](https://cuda.juliagpu.org/stable/installation/overview/)

As described in the above link try setting the environment variable `JULIA_DEBUG` to “CUDA” and share the results.

Also, could you please share the full error message that follows the warning?

If you know any additional information about how Julia was installed on your system that would also be helpful.

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [September 7, 2022, 8:42am UTC](https://discourse.julialang.org/t/unable-to-use-cuda-from-artifacts/86854/3 "2022-09-07T08:42:11Z")

</div>

xref: [Path to CUDA driver](https://discourse.julialang.org/t/path-to-cuda-driver/86817)

---

<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:** [September 8, 2022, 6:15am UTC](https://discourse.julialang.org/t/unable-to-use-cuda-from-artifacts/86854/4 "2022-09-08T06:15:38Z")

</div>

> [@yoshi](#):
>
> This version of CUDA.jl only supports NVIDIA drivers for CUDA 10.2 or higher (yours is for CUDA 9.2.0)” but nvcc --version is showing version 10.2 is loaded.

The toolkit is different from the driver. `libcuda` is discovered on the library search path, so check `ldconfig -p`.

> [@yoshi](#):
>
> I have read that Artifacts are downloaded with Julia so that some apprpriate version of the nvidia drivers are downloaded with cuda.jl.

No, we only download a toolkit that’s appropriate for your driver. We cannot use our own driver, as that requires administrative permissions (and is tied to the active kernel). The reason it fails is because we do not support the NVIDIA driver for CUDA 9.2, and we don’t provide artifacts for it.

---

<div class="post-metadata">

**Author:** ![Ralph\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ralph_smith/32/10344_2.png) [@Ralph\_Smith](https://discourse.julialang.org/u/Ralph_Smith)\
**Post date:** [September 8, 2022, 1:21pm UTC](https://discourse.julialang.org/t/unable-to-use-cuda-from-artifacts/86854/5 "2022-09-08T13:21:29Z")

</div>

If you can run the `nvidia-smi` command on the available nodes, it will show the GPU model (which determines what drivers can be used), and the currently installed driver, including its CUDA compatibility.  
If your administrator has provided CUDA 10.2 as a module there may be some nodes where it is actually useful, and some way to assign your task to them.

---

<div class="post-metadata">

**Author:** ![alexe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alexe/32/46306_2.png) [@alexe](https://discourse.julialang.org/u/alexe)\
**Post date:** [January 28, 2023, 8:06am UTC](https://discourse.julialang.org/t/unable-to-use-cuda-from-artifacts/86854/6 "2023-01-28T08:06:46Z")

</div>

It looks like you are experiencing the same problem than here [post](https://discourse.julialang.org/t/how-to-use-cuda-on-cluster-nodes-without-internet-access/79190).

As explained in the post, you should be able to use the CUDA installation provided in your cluster and not downloading anything extra. To prevent CUDA.jl downloads you should use `JULIA_CUDA_USE_BINARYBUILDER=false`

It would be nice that CUDA.jl was able to look first for a valid local CUDA installation and only if it fails start the download process. It make sense?
