# UndefVarError: libcuda\_original\_version not defined

**URL:** <https://discourse.julialang.org/t/undefvarerror-libcuda-original-version-not-defined/97049>\
**Category:** GPU\
**Tags:** cuda\
**Created:** [April 4, 2023, 8:44am UTC](https://discourse.julialang.org/t/undefvarerror-libcuda-original-version-not-defined/97049 "2023-04-04T08:44:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephans3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stephans3/32/34552_2.png) [@stephans3](https://discourse.julialang.org/u/stephans3)\
**Post date:** [April 4, 2023, 8:44am UTC](https://discourse.julialang.org/t/undefvarerror-libcuda-original-version-not-defined/97049/1 "2023-04-04T08:44:32Z")

</div>

Hi all,  
on a student’s laptop (with Nvidia P620, Windows 10) we installed CUDA.jl and faced the following error message.

```julia
julia> CUDA.versioninfo()
CUDA runtime 12.1, artifact installation
CUDA driver 12.1
NVIDIA driver 531.14.0ERROR: UndefVarError: libcuda_original_version not defined
Stacktrace:
 [1] getproperty
   @ .\Base.jl:31 [inlined]
 [2] system_driver_version
   @ C:\Users\Student\.julia\packages\CUDA\is36v\lib\cudadrv\version.jl:25 [inlined]
 [3] versioninfo(io::Base.TTY)
   @ CUDA C:\Users\Student\.julia\packages\CUDA\is36v\src\utilities.jl:46
 [4] versioninfo()
   @ CUDA C:\Users\Student\.julia\packages\CUDA\is36v\src\utilities.jl:32
 [5] top-level scope
   @ REPL[4]:1
 [6] top-level scope
   @ C:\Users\Student\.julia\packages\CUDA\is36v\src\initialization.jl:162

```

Is this related to “UndefVarError: libcuda not defined” as noted here:  
[https://cuda.juliagpu.org/stable/installation/troubleshooting/#UndefVarError:-libcuda-not-defined](https://cuda.juliagpu.org/stable/installation/troubleshooting/#UndefVarError:-libcuda-not-defined)

If yes, what shall we do next? Shall we start another Julia instance in the Powershell with

```julia
$ JULIA_DEBUG=CUDA_Driver_jll julia

```

and run `CUDA.versioninfo()` again?

Could this problem also be related to a previous installation of the CUDA Toolkit?

---

<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:** [April 4, 2023, 12:33pm UTC](https://discourse.julialang.org/t/undefvarerror-libcuda-original-version-not-defined/97049/2 "2023-04-04T12:33:37Z")

</div>

That’s a bug, looks like I haven’t tested this edge case on Windows. I’ll have a look at a fix. In the meantime, you can always downgrade to version 3.x.

EDIT: [Fix system\_driver\_version on platforms not supported by CUDA\_Driver\_jll. by maleadt · Pull Request #1854 · JuliaGPU/CUDA.jl · GitHub](https://github.com/JuliaGPU/CUDA.jl/pull/1854) should fix this
