Error installing CUDAdrv

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?

See:

: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.