# NVIDIA Driver Release 510 and Julia 1.7.2

**URL:** <https://discourse.julialang.org/t/nvidia-driver-release-510-and-julia-1-7-2/80451>\
**Category:** GPU\
**Created:** [May 3, 2022, 10:10pm UTC](https://discourse.julialang.org/t/nvidia-driver-release-510-and-julia-1-7-2/80451 "2022-05-03T22:10:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![afas](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@afas](https://discourse.julialang.org/u/afas)\
**Post date:** [May 3, 2022, 10:10pm UTC](https://discourse.julialang.org/t/nvidia-driver-release-510-and-julia-1-7-2/80451/1 "2022-05-03T22:10:56Z")

</div>

Hi everyone, I am experiencing unwanted behavior from CUDA and I was wondering if anyone has any idea about what is happening here.  
Brief intro: I just installed Julia 1.7.2 on a new Windows machine. CUDA was working just fine. After updating the CUDA drivers (Release 510), I started having all sorts of issues.  
Running

> Pkg.test(“CUDA”)

resulted in a fatal error which forced Windows to reboot.  
I then reverted back to the previous NVIDIA driver version (Release 470), but even though the CUDA tests now pass, I am experiencing several unwanted behaviors:

> julia\> a = CUDA.fill(2.0f0,2^20)  
> 1048576-element CuArray{Float32, 1, CUDA.Mem.DeviceBuffer}:  
> 0.0  
> 2.0  
> 0.0  
> 2.0  
> ⋮  
> 2.0  
> 0.0  
> 2.0

And also:

> julia\> a = CUDA.rand(10)  
> 10-element CuArray{Float32, 1, CUDA.Mem.DeviceBuffer}:  
> 0.0  
> 0.0  
> 0.0  
> 0.0  
> ⋮  
> 0.0  
> 0.0  
> 0.0

Some specs:

> julia\> CUDA.version()  
> v"11.4.0"

> julia\> CUDA.versioninfo()  
> CUDA toolkit 11.6, artifact installation  
> NVIDIA driver 472.39.0, for CUDA 11.4  
> CUDA driver 11.4  
> Libraries:
> 
> - CUBLAS: 11.8.1
> - CURAND: 10.2.9
> - CUFFT: 10.7.0
> - CUSOLVER: 11.3.2
> - CUSPARSE: 11.7.1
> - CUPTI: 16.0.0
> - NVML: 11.0.0+472.39
> - CUDNN: 8.30.2 (for CUDA 11.5.0)
> - CUTENSOR: 1.4.0 (for CUDA 11.5.0)  
> Toolchain:
> - Julia: 1.7.2
> - LLVM: 12.0.1
> - PTX ISA support: 3.2, 4.0, 4.1, 4.2, 4.3, 5.0, 6.0, 6.1, 6.3, 6.4, 6.5, 7.0
> - Device capability support: sm\_35, sm\_37, sm\_50, sm\_52, sm\_53, sm\_60, sm\_61, sm\_62, sm\_70, \>sm\_72, sm\_75, sm\_80  
> 2 devices:  
> 0: Quadro RTX 5000 (sm\_75, 14.624 GiB / 15.000 GiB available)  
> 1: Quadro RTX 5000 (sm\_75, 14.025 GiB / 15.000 GiB available)

Any ideas? Where am I going wrong?

---

<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:** [May 4, 2022, 9:58am UTC](https://discourse.julialang.org/t/nvidia-driver-release-510-and-julia-1-7-2/80451/2 "2022-05-04T09:58:56Z")

</div>

I’m using driver 510 without any issues, so I don’t know what would be happening here.

> [@afas](#):
>
> I then reverted back to the previous NVIDIA driver version (Release 470), but even though the CUDA tests now pass, I am experiencing several unwanted behaviors:

Which REPL are you evaluating this in? There’s known issues with VSCode and CUDA.jl.

---

<div class="post-metadata">

**Author:** ![afas](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@afas](https://discourse.julialang.org/u/afas)\
**Post date:** [May 4, 2022, 2:49pm UTC](https://discourse.julialang.org/t/nvidia-driver-release-510-and-julia-1-7-2/80451/3 "2022-05-04T14:49:09Z")

</div>

Thanks for the reply! After I upgraded to 510, any operation on CUDA would just cause the OS to crash and needed a reboot. I could not even extract any crash logs, since the machine would just reboot automatically. Any thoughts on why this would be the case? I also tried cleaning up the Julia environment entirely and re-installing everything, but I still got the same problem.

Regarding the second question, I am indeed using VSCode, I had no idea that would be the problem. I will try using a Powershell instead to double check.

---

<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:** [May 4, 2022, 3:32pm UTC](https://discourse.julialang.org/t/nvidia-driver-release-510-and-julia-1-7-2/80451/4 "2022-05-04T15:32:39Z")

</div>

> [@afas](#):
>
> Thanks for the reply! After I upgraded to 510, any operation on CUDA would just cause the OS to crash and needed a reboot. I could not even extract any crash logs, since the machine would just reboot automatically. Any thoughts on why this would be the case? I also tried cleaning up the Julia environment entirely and re-installing everything, but I still got the same problem.

Sorry, no. I haven’t encountered such an issue.

---

<div class="post-metadata">

**Author:** ![afas](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@afas](https://discourse.julialang.org/u/afas)\
**Post date:** [May 4, 2022, 10:13pm UTC](https://discourse.julialang.org/t/nvidia-driver-release-510-and-julia-1-7-2/80451/5 "2022-05-04T22:13:18Z")

</div>

I have some more info on this, hoping it helps.  
The issues regarding computations are resolved by launching Julia using Powershell, instead of VSCode.

However, Driver 510 still causes the exact same behavior, with the OS crashing. The Stop Code I receive is: PAGE\_FAULT\_IN\_NONPAGED\_AREA  
Failure seems to be happening with nvlddmkm.sys.

I know it might be hard (or even impossible) to figure out with this information, but I thought someone else might experience the same issues. Should I report this on the CUDA GitHub page?

---

<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:** [May 5, 2022, 9:47am UTC](https://discourse.julialang.org/t/nvidia-driver-release-510-and-julia-1-7-2/80451/6 "2022-05-05T09:47:52Z")

</div>

> [@afas](#):
>
> Should I report this on the CUDA GitHub page?

No. CUDA.jl shouldn’t be able to crash your PC, this is strictly a bug with the NVIDIA driver / your hardware.

---

<div class="post-metadata">

**Author:** ![jeremiedb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeremiedb/32/29150_2.png) [@jeremiedb](https://discourse.julialang.org/u/jeremiedb)\
**Post date:** [May 6, 2022, 2:16am UTC](https://discourse.julialang.org/t/nvidia-driver-release-510-and-julia-1-7-2/80451/7 "2022-05-06T02:16:51Z")

</div>

Not sure if this can be related in any way, but I also got issues on WSL2, Julia 1.7.2 and latest CUDA.jl (v3.9.0):

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/c/1c4cb62727400895d2ad44976ce05e29b0fea59c.png)

I could install CUDA.jl v3.8.5 and it seems to work fine despite some warnings during installation:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/2/1225b17467f5db0d4fd8cfb157625db3d6607ebc.jpeg)

Drivers info:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/5/0/50f212d3f997433642a446c4bb676b40dc3ee8aa.png)

Also, CUDA.jl works fine on Julia 1.6.4, both v3.8.0 and v3.9.0. I also performed a driver update, which moved to CUDA 11.6, and still got the same results (work properly on Julia 1.6.4 but crashes on Julia 1.7.2). Also, CUDA.jl v3.9.0 works fine for Julia 1.8.0-rc3.

---

<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:** [May 6, 2022, 7:37am UTC](https://discourse.julialang.org/t/nvidia-driver-release-510-and-julia-1-7-2/80451/8 "2022-05-06T07:37:50Z")

</div>

This is unrelated, and probably a Julia bug. Try removing the cache of compiled packages (`~/.julia/compiled`). Unless you’re doing something peculiar – the `Replacing module LLVM` seems to indicate that – are you using Revise after updating LLVM.jl, or have you anything special in your startup.jl? In any way, this cannot be related to a driver upgrade.

---

<div class="post-metadata">

**Author:** ![jeremiedb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeremiedb/32/29150_2.png) [@jeremiedb](https://discourse.julialang.org/u/jeremiedb)\
**Post date:** [May 10, 2022, 8:52pm UTC](https://discourse.julialang.org/t/nvidia-driver-release-510-and-julia-1-7-2/80451/9 "2022-05-10T20:52:55Z")

</div>

Deleting the compiled packages file under: ( `~/.julia/compiled/v1.7`) fixed it! Thanks for the trick!  
I’m not aware of any particular usage of LLVM.jl or Revise.jl. The only thing I can think of is that I had made the initial install of CUDA within a Project/Pkg environment (not the general 1.7 one).
