Skip to content

Test fail for libraries/cublas/level1 #2810

@mind6

Description

@mind6

Describe the bug

A test failure on testf(BLAS.asum, rand(T, m)).

  • On my system I only get this single error with jobs=1.
  • With jobs=4 I get this error plus perhaps another error.
  • With jobs=16 I immediately get multiple errors over multiple tests.

To reproduce

From a dev directory with tag v5.8.2 checked out:

K:\.julia\dev\CUDA>julia --project test\runtests.jl --jobs=1 libraries/cublas/level1
Manifest.toml

I'm using the CUDA.jl manifest.

Expected behavior

Test passing.

Julia versioninfo()

Julia Version 1.10.10
Commit 95f30e51f4 (2025-06-27 09:51 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 32 × AMD Ryzen 9 9950X 16-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, generic)
Threads: 32 default, 0 interactive, 16 GC (on 32 virtual cores)
Environment:
  JULIA_CONDAPKG_BACKEND = Null
  JULIA_DEPOT_PATH = K:\.julia
  JULIA_NUM_THREADS = auto
  JULIA_PYTHONCALL_EXE = K:\Miniconda3\envs\py310\python.exe

CUDA Version info and output

┌ Info: System information:
│ CUDA runtime 12.9, artifact installation
│ CUDA driver 12.9
│ NVIDIA driver 576.80.0
│ 
│ CUDA libraries:
│ - CUBLAS: 12.9.1
│ - CURAND: 10.3.10
│ - CUFFT: 11.4.1
│ - CUSOLVER: 11.7.5
│ - CUSPARSE: 12.5.10
│ - CUPTI: 2025.2.1 (API 28.0.0)
│ - NVML: 12.0.0+576.80
│ 
│ Julia packages:
│ - CUDA: 5.8.2
│ - CUDA_Driver_jll: 0.13.1+0
│ - CUDA_Runtime_jll: 0.17.1+0
│ 
│ Toolchain:
│ - Julia: 1.10.10
│ - LLVM: 15.0.7
│ 
│ 1 device:
└   0: NVIDIA GeForce RTX 3080 (sm_86, 8.186 GiB / 10.000 GiB available)
[ Info: Testing using device 0 (NVIDIA GeForce RTX 3080). To change this, specify the `--gpu` argument to the tests, or set the `CUDA_VISIBLE_DEVICES` environment variable.
[ Info: Running 1 tests in parallel. If this is too many, specify the `--jobs` argument to the tests, or set the `JULIA_CPU_THREADS` environment variable.
                             |          | ---------------- GPU ---------------- | ---------------- CPU ---------------- |
Test                (Worker) | Time (s) | GC (s) | GC % | Alloc (MB) | RSS (MB) | GC (s) | GC % | Alloc (MB) | RSS (MB) |
libraries/cublas/level1  (2) |         failed at 2025-07-05T10:01:58.798
Testing finished in 20 seconds, 547 milliseconds
Worker 2 failed running test libraries/cublas/level1:
Some tests did not pass: 131 passed, 1 failed, 0 errored, 0 broken.
libraries/cublas/level1: Test Failed at K:\.julia\dev\CUDA\test\libraries\cublas\level1.jl:28
  Expression: testf(BLAS.asum, rand(T, m))

Stacktrace:
 [1] record(ts::Test.DefaultTestSet, t::Union{Test.Error, Test.Fail}; print_result::Bool)
   @ Test K:\.julia\juliaup\julia-1.10.10+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Test\src\Test.jl:1085
 [2] record(ts::Test.DefaultTestSet, t::Union{Test.Error, Test.Fail})
   @ Test K:\.julia\juliaup\julia-1.10.10+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Test\src\Test.jl:1078
 [3] top-level scope
   @ K:\.julia\dev\CUDA\test\runtests.jl:477
 [4] include(mod::Module, _path::String)
   @ Base .\Base.jl:495
 [5] exec_options(opts::Base.JLOptions)
   @ Base .\client.jl:323
 [6] _start()
   @ Base .\client.jl:557

Test Summary:               | Pass  Fail  Total  Time
  Overall                   |  131     1    132
    libraries/cublas/level1 |  131     1    132
    FAILURE

Error in testset libraries/cublas/level1:
Test Failed at K:\.julia\dev\CUDA\test\libraries\cublas\level1.jl:28
  Expression: testf(BLAS.asum, rand(T, m))

ERROR: LoadError: Test run finished with errors
in expression starting at K:\.julia\dev\CUDA\test\runtests.jl:508

I believe I'm experiencing a similar issue as #2223

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions