# Failed test of CUDA package

**URL:** <https://discourse.julialang.org/t/failed-test-of-cuda-package/107378>\
**Category:** GPU\
**Created:** [December 10, 2023, 10:00am UTC](https://discourse.julialang.org/t/failed-test-of-cuda-package/107378 "2023-12-10T10:00:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nihil](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@nihil](https://discourse.julialang.org/u/nihil)\
**Post date:** [December 10, 2023, 10:00am UTC](https://discourse.julialang.org/t/failed-test-of-cuda-package/107378/1 "2023-12-10T10:00:02Z")

</div>

There are a fair few failed tests from ‘test CUDA’ in the package manager.

Is this normal, or is this from a miss-match of driver and julia pagage?

CUDA.versioninfo()  
CUDA runtime 12.3, artifact installation  
CUDA driver 12.3  
NVIDIA driver 545.23.8

CUDA libraries:

- CUBLAS: 12.3.4
- CURAND: 10.3.4
- CUFFT: 11.0.12
- CUSOLVER: 11.5.4
- CUSPARSE: 12.2.0
- CUPTI: 21.0.0
- NVML: 12.0.0+545.23.8

Julia packages:

- CUDA: 5.1.1
- CUDA\_Driver\_jll: 0.7.0+0
- CUDA\_Runtime\_jll: 0.10.1+0

Toolchain:

- Julia: 1.9.4
- LLVM: 14.0.6

nvidia-smi  
Sun Dec 10 21:04:32 2023  
±--------------------------------------------------------------------------------------+  
| NVIDIA-SMI 545.23.08 Driver Version: 545.23.08 CUDA Version: 12.3 |  
|-----------------------------------------±---------------------±---------------------+  
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |  
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |  
| | | MIG M. |  
|=========================================+======================+======================|  
| 0 NVIDIA GeForce RTX 2080 Ti Off | 00000000:04:00.0 On | N/A |  
| 29% 37C P8 34W / 250W | 382MiB / 11264MiB | 10% Default |  
| | | N/A |  
±----------------------------------------±---------------------±---------------------+

±--------------------------------------------------------------------------------------+  
| Processes: |  
| GPU GI CI PID Type Process name GPU Memory |  
| ID ID Usage |  
|=======================================================================================|  
| 0 N/A N/A 3404 G /usr/libexec/Xorg 229MiB |  
| 0 N/A N/A 3562 G xfwm4 4MiB |  
| 0 N/A N/A 4708 G …sion,SpareRendererForSitePerProcess 141MiB |  
±--------------------------------------------------------------------------------------+

Failed tests:  
libraries/cusolver/sparse (2) | failed at 2023-12-10T21:06:37.879  
libraries/cusparse/conversions (16) | failed at 2023-12-10T21:06:45.547

libraries/cusparse/generic (49) | failed at 2023-12-10T21:06:57.911  
core/cudadrv (42) | failed at 2023-12-10T21:06:58.056  
base/aqua (28) | failed at 2023-12-10T21:06:58.198  
base/threading (39) | failed at 2023-12-10T21:06:58.420  
core/codegen (41) | failed at 2023-12-10T21:07:01.370  
core/device/intrinsics (50) | failed at 2023-12-10T21:07:14.386  
e/intrinsics (50) | failed at 2023-12-10T21:07:14.386  
libraries/cusolver/multigpu (46) | failed at 2023-12-10T21:07:40.119  
base/texture (38) | failed at 2023-12-10T21:07:48.248  
base/exceptions (32) | failed at 2023-12-10T21:08:03.453  
base/examples (31) | failed at 2023-12-10T21:09:01.713

---

<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:** [December 11, 2023, 10:09am UTC](https://discourse.julialang.org/t/failed-test-of-cuda-package/107378/2 "2023-12-11T10:09:55Z")

</div>

Probably related to the amount of parallelism; see [Testsuite could be more careful about parallel testing · Issue #2192 · JuliaGPU/CUDA.jl · GitHub](https://github.com/JuliaGPU/CUDA.jl/issues/2192). The test suite prints something about that at the start.

---

<div class="post-metadata">

**Author:** ![nihil](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@nihil](https://discourse.julialang.org/u/nihil)\
**Post date:** [December 11, 2023, 9:47pm UTC](https://discourse.julialang.org/t/failed-test-of-cuda-package/107378/3 "2023-12-11T21:47:42Z")

</div>

Thank you! The system is working for my code so I figured it was over-stressing it somehow.

---

<div class="post-metadata">

**Author:** ![Benoit9](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/benoit9/32/690_2.png) [@Benoit9](https://discourse.julialang.org/u/Benoit9)\
**Post date:** [January 2, 2024, 9:53pm UTC](https://discourse.julialang.org/t/failed-test-of-cuda-package/107378/4 "2024-01-02T21:53:22Z")

</div>

FWIW, even with --jobs=1, tests fail in:

base/aqua (2) | failed at 2024-01-02T22:40:23.437

Also, on RTX 2080 Ti, Ubuntu 22.04, CUDA driver 12.2, CUDA runtime 12.3 ( artifact installation), Nvidia driver 535.129.03, Julia 1.10.0, CUDA 5.1.1

Final report is 1 Error, 9 Broken:

> ```
> base/aqua | 8 1 9      
> base/kernelabstractions | 2361 4 2365      
> base/texture | 38 4 42      
> core/cudadrv | 139 1 140
> 
> ```

---

<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:** [January 3, 2024, 7:02am UTC](https://discourse.julialang.org/t/failed-test-of-cuda-package/107378/5 "2024-01-03T07:02:48Z")

</div>

Aqua tests are for developers; failures with them are not to be worried about.

---

<div class="post-metadata">

**Author:** ![Benoit9](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/benoit9/32/690_2.png) [@Benoit9](https://discourse.julialang.org/u/Benoit9)\
**Post date:** [January 3, 2024, 8:07am UTC](https://discourse.julialang.org/t/failed-test-of-cuda-package/107378/6 "2024-01-03T08:07:06Z")

</div>

OK, thanks!

What about the 3 that are broken:

base/kernelabstractions  
base/texture  
core/cudadrv

Would you like me to print more info? (how?)

---

<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:** [January 3, 2024, 8:27am UTC](https://discourse.julialang.org/t/failed-test-of-cuda-package/107378/7 "2024-01-03T08:27:19Z")

</div>

Broken tests are explicitly marked as broken by CUDA.jl developers, and are not relevant to end users. They are not test failures.
