CUDA doesn't work

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.

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.

Hello maleadt,

This is the output of has_cuda() and using CUDA again with JULIA_DEBUG environment …

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