# Error installing CUDAdrv

**URL:** <https://discourse.julialang.org/t/error-installing-cudadrv/37830>\
**Category:** GPU\
**Created:** [April 19, 2020, 3:54am UTC](https://discourse.julialang.org/t/error-installing-cudadrv/37830 "2020-04-19T03:54:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehrdad\_Esfahani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mehrdad_esfahani/32/14208_2.png) [@Mehrdad\_Esfahani](https://discourse.julialang.org/u/Mehrdad_Esfahani)\
**Post date:** [April 19, 2020, 3:54am UTC](https://discourse.julialang.org/t/error-installing-cudadrv/37830/1 "2020-04-19T03:54:08Z")

</div>

I am very new to CUDA in Julia. When I want to use “CUDAdrv” package I get the following error:

using CUDAdrv;

┌ Info: Precompiling CUDAdrv [c5f51814-7f29-56b8-a69c-e4d8f6be1fde]  
└ @ Base loading.jl:1242  
ERROR: LoadError: AssertionError: status == 0  
Stacktrace:  
[1] pre\_version(::String) at /home/mehrdad/.julia/packages/CUDAdrv/ADRHQ/src/CUDAdrv.jl:23  
[2] top-level scope at /home/mehrdad/.julia/packages/CUDAdrv/ADRHQ/src/CUDAdrv.jl:37  
[3] include at ./boot.jl:328 [inlined]  
[4] include\_relative(::Module, ::String) at ./loading.jl:1094  
[5] include(::Module, ::String) at ./Base.jl:31  
[6] top-level scope at none:2  
[7] eval at ./boot.jl:330 [inlined]  
[8] eval(::Expr) at ./client.jl:432  
[9] top-level scope at ./none:3  
in expression starting at /home/mehrdad/.julia/packages/CUDAdrv/ADRHQ/src/CUDAdrv.jl:27  
Failed to precompile CUDAdrv [c5f51814-7f29-56b8-a69c-e4d8f6be1fde] to /home/mehrdad/.julia/compiled/v1.2/CUDAdrv/HMhfu.ji.

Stacktrace:  
[1] error(::String) at ./error.jl:33  
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1253  
[3] \_require(::Base.PkgId) at ./loading.jl:1013  
[4] require(::Base.PkgId) at ./loading.jl:911  
[5] require(::Module, ::Symbol) at ./loading.jl:906  
[6] top-level scope at In[22]:1

What is it am I doing wrong?

---

<div class="post-metadata">

**Author:** ![KajWiik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kajwiik/32/199_2.png) [@KajWiik](https://discourse.julialang.org/u/KajWiik)\
**Post date:** [April 19, 2020, 9:22am UTC](https://discourse.julialang.org/t/error-installing-cudadrv/37830/2 "2020-04-19T09:22:13Z")

</div>

See:

> [@A newbie can not use CUDA by follow official DOC!](https://discourse.julialang.org/t/a-newbie-can-not-use-cuda-by-follow-official-doc/36010/2):
>
> Have you installed the CUDA drivers and toolkit and tested that it is working?

---

<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 20, 2020, 1:18pm UTC](https://discourse.julialang.org/t/error-installing-cudadrv/37830/3 "2020-04-20T13:18:58Z")

</div>

`:cuDriverGetVersion` failed here, which seems to indicate a problem with the CUDA installation. You are also using a fairly “old” version of CUDAdrv, there has been many changes since.
