# CUDA doesn't work

**URL:** https://discourse.julialang.org/t/cuda-doesnt-work/75596
**Category:** GPU
**Created:** [February 1, 2022, 7:08pm UTC](https://discourse.julialang.org/t/cuda-doesnt-work/75596 "2022-02-01T19:08:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vietanh.do](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vietanh.do/32/33158_2.png) [@vietanh.do](https://discourse.julialang.org/u/vietanh.do)
#### Post date: [February 1, 2022, 7:08pm UTC](https://discourse.julialang.org/t/cuda-doesnt-work/75596/1 "2022-02-01T19:08:19Z")

</div>

Hi there. I want to train the data through GPU. CUDA.jl ist installed, but when I check the Cuda function like has\_cuda(), it returns false.  
I have done these following things:

- all the drivers and programms updated (CUDA, Julia, …)
- re-install driver for graphic card (Nvidia)  
I installed Win 11 on my computer. Graphic card: NVIDIA Geforce 1650 Ti  
If other test are necessary to find out what is the underlying problem, please let me know.

---

<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: [February 7, 2022, 9:54am UTC](https://discourse.julialang.org/t/cuda-doesnt-work/75596/2 "2022-02-07T09:54:21Z")

</div>

If you start Julia with the JULIA\_DEBUG environment variable set to `CUDA`, `has_cuda` will show some debug messages indicating where it looked and what it did or did not find.

---

<div class="post-metadata">

### Author: ![vietanh.do](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vietanh.do/32/33158_2.png) [@vietanh.do](https://discourse.julialang.org/u/vietanh.do)
#### Post date: [February 24, 2022, 9:02am UTC](https://discourse.julialang.org/t/cuda-doesnt-work/75596/3 "2022-02-24T09:02:42Z")

</div>

Hello maleadt,

This is the output of has\_cuda() and using CUDA again with JULIA\_DEBUG environment …

```julia
julia> using CUDA
┌ Debug: Rejecting cache file C:\Users\tyto4\.julia\compiled\v1.7\CUDA\oWw5k_blGEq.ji because it is for file C:\Users\tyto4\.julia\packages\CUDA\nYggH\src\CUDA.jl not file C:\Users\tyto4\.julia\packages\CUDA\sCev8\src\CUDA.jl
└ @ Base loading.jl:1866
┌ Debug: Rejecting cache file C:\Users\tyto4\.julia\compiled\v1.7\ChainRulesCore\G6ax7_blGEq.ji because it is for file C:\Users\tyto4\.julia\packages\ChainRulesCore\oBjCg\src\ChainRulesCore.jl not file C:\Users\tyto4\.julia\packages\ChainRulesCore\yaGTL\src\ChainRulesCore.jl
└ @ Base loading.jl:1866
┌ Debug: Rejecting cache file C:\Users\tyto4\.julia\compiled\v1.7\ChainRulesCore\G6ax7_I0PYe.ji because it is for file C:\Users\tyto4\.julia\packages\ChainRulesCore\IFusD\src\ChainRulesCore.jl not file C:\Users\tyto4\.julia\packages\ChainRulesCore\yaGTL\src\ChainRulesCore.jl
└ @ Base loading.jl:1866
┌ Debug: Required dependency ChainRulesCore [d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4] failed to load from cache file for C:\Users\tyto4\.julia\packages\ChainRulesCore\yaGTL\src\ChainRulesCore.jl.
└ @ Base loading.jl:845
┌ Debug: Rejecting cache file C:\Users\tyto4\.julia\compiled\v1.7\AbstractFFTs\Di3HZ_I0PYe.ji because module ChainRulesCore [d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4] is already loaded and incompatible.
└ @ Base loading.jl:1832
┌ Debug: Requires conditionally ran code in 0.0029126 seconds: `RandomNumbers` detected `Random123`
└ @ Requires C:\Users\tyto4\.julia\packages\RandomNumbers\3pD1N\src\RandomNumbers.jl:38
┌ Debug: Rejecting cache file C:\Users\tyto4\.julia\compiled\v1.7\LLVM\e8NBy_I0PYe.ji because it is for file C:\Users\tyto4\.julia\packages\LLVM\vQ98J\src\LLVM.jl not file C:\Users\tyto4\.julia\packages\LLVM\shuW4\src\LLVM.jl
└ @ Base loading.jl:1866
┌ Debug: Using LLVM 12.0.1 at C:\Users\tyto4\AppData\Local\Programs\Julia-1.7.1\bin\libLLVM.dll
└ @ LLVM C:\Users\tyto4\.julia\packages\LLVM\shuW4\src\LLVM.jl:115
┌ Debug: Rejecting cache file C:\Users\tyto4\.julia\compiled\v1.7\ExprTools\eM8wu_blGEq.ji because it is for file C:\Users\tyto4\.julia\packages\ExprTools\9K1YN\src\ExprTools.jl not file C:\Users\tyto4\.julia\packages\ExprTools\pL09U\src\ExprTools.jl
└ @ Base loading.jl:1866
┌ Debug: Rejecting cache file C:\Users\tyto4\.julia\compiled\v1.7\TimerOutputs\hd2yD_blGEq.ji because module ExprTools [e2ba6199-217a-4e67-a87a-7c52f15ade04] is already loaded and incompatible.
└ @ Base loading.jl:1832
┌ Debug: Rejecting cache file C:\Users\tyto4\.julia\compiled\v1.7\GPUCompiler\yPwef_blGEq.ji because module LLVM [929cbde3-209d-540e-8aea-75f648917ca0] is already loaded and incompatible.
└ @ Base loading.jl:1832

julia> has_cuda()
┌ Debug: Could not unload the system CUDA library; this will prevent use of the forward-compatible package
└ @ CUDA C:\Users\tyto4\.julia\packages\CUDA\sCev8\lib\cudadrv\CUDAdrv.jl:80
┌ Debug: Trying to use artifacts...
└ @ CUDA.Deps C:\Users\tyto4\.julia\packages\CUDA\sCev8\deps\bindeps.jl:128
┌ Debug: Selecting artifacts based on driver compatibility 11.6.0
└ @ CUDA.Deps C:\Users\tyto4\.julia\packages\CUDA\sCev8\deps\bindeps.jl:140
false
```

---

<div class="post-metadata">

### Author: ![josuagrw](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/josuagrw/32/1015_2.png) [@josuagrw](https://discourse.julialang.org/u/josuagrw)
#### Post date: [February 24, 2022, 9:20am UTC](https://discourse.julialang.org/t/cuda-doesnt-work/75596/4 "2022-02-24T09:20:54Z")

</div>

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …
