ERROR: Package CuArrays errored during testing

I followed all the steps in https://juliagpu.gitlab.io/CuArrays.jl/tutorials/generated/intro/ to install Cuda for using it in Julia v. 1.1. I also installed the CUDA Toolkit v. 10.1. After the installation, I run test CuArrays and I got the following huge message error:

Testing CuArrays
Resolving package versions…
Status C:\Users\User\AppData\Local\Temp\jl_307E.tmp\Manifest.toml
[621f4979] AbstractFFTs v0.4.1
[79e6a3ab] Adapt v1.0.0
[9e28174c] BinDeps v0.8.10
[fa961155] CEnum v0.2.0
[00ebfdb7] CSTParser v0.6.2
[3895d2a7] CUDAapi v1.0.1
[c5f51814] CUDAdrv v3.1.0
[be33ccc6] CUDAnative v2.2.1
[bbf7d656] CommonSubexpressions v0.2.0
[34da2185] Compat v2.1.0
[8f4d0f93] Conda v1.3.0
[a8cc5b0e] Crayons v4.0.0
[3a865a2d] CuArrays v1.1.0
[864edb3b] DataStructures v0.17.0
[163ba53b] DiffResults v0.0.4
[b552c78f] DiffRules v0.0.10
[7a1cc6ca] FFTW v0.3.0
[1a297f60] FillArrays v0.6.3
[f6369f11] ForwardDiff v0.10.3
[0c68f7d7] GPUArrays v1.0.0
[682c06a0] JSON v0.21.0
[929cbde3] LLVM v1.2.0
[1914dd2f] MacroTools v0.5.1
[872c559c] NNlib v0.6.0
[77ba4419] NaNMath v0.3.2
[bac558e1] OrderedCollections v1.1.0
[69de0a69] Parsers v0.3.6
[189a3867] Reexport v0.2.0
[ae029012] Requires v0.5.2
[276daf66] SpecialFunctions v0.7.2
[90137ffa] StaticArrays v0.11.0
[a759f4b9] TimerOutputs v0.5.0
[0796e94c] Tokenize v0.5.5
[30578b45] URIParser v0.4.0
[81def892] VersionParsing v1.1.3
[2a0f44e3] Base64 [@stdlib/Base64]
[b99e7846] BinaryProvider [@stdlib/BinaryProvider]
[864e158e] CredentialsHandler [@stdlib/CredentialsHandler]
[ade2ca70] Dates [@stdlib/Dates]
[8bb1440f] DelimitedFiles [@stdlib/DelimitedFiles]
[8ba89e20] Distributed [@stdlib/Distributed]
[cd3eb016] HTTP [@stdlib/HTTP]
[83e8ac13] IniFile [@stdlib/IniFile]
[b77e0a4c] InteractiveUtils [@stdlib/InteractiveUtils]
[76f85450] LibGit2 [@stdlib/LibGit2]
[8f399da3] Libdl [@stdlib/Libdl]
[37e2e46d] LinearAlgebra [@stdlib/LinearAlgebra]
[56ddb016] Logging [@stdlib/Logging]
[d6f4376e] Markdown [@stdlib/Markdown]
[739be429] MbedTLS [@stdlib/MbedTLS]
[a63ad114] Mmap [@stdlib/Mmap]
[44cfe95a] Pkg [@stdlib/Pkg]
[de0858da] Printf [@stdlib/Printf]
[3fa0cd96] REPL [@stdlib/REPL]
[9a3f8284] Random [@stdlib/Random]
[ea8e919c] SHA [@stdlib/SHA]
[9e88b42a] Serialization [@stdlib/Serialization]
[1a1011a3] SharedArrays [@stdlib/SharedArrays]
[6462fe0b] Sockets [@stdlib/Sockets]
[2f01184e] SparseArrays [@stdlib/SparseArrays]
[10745b16] Statistics [@stdlib/Statistics]
[9d418dce] TOML [@stdlib/TOML]
[8dfed614] Test [@stdlib/Test]
[cf7118a7] UUIDs [@stdlib/UUIDs]
[4ec0a83e] Unicode [@stdlib/Unicode]
xt_trmm!: Error During Test at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:546
Got exception outside of a @test
CUBLASError(code 7, an invalid value was used as an argument)
Stacktrace:
[1] cublasXtStrmm(::Ptr{Nothing}, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Array{Float32,1}, ::CuArray{Float32,2}, ::Int64, ::CuArray{Float32,2}, ::Int64, ::CuArray{Float32,2}, ::Int64) at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\src\blas\error.jl:45
[2] xt_trmm!(::Char, ::Char, ::Char, ::Char, ::Float32, ::CuArray{Float32,2}, ::CuArray{Float32,2}, ::CuArray{Float32,2}) at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\src\blas\wrappers.jl:2056
[3] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:548
[4] top-level scope at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
[5] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:547
[6] top-level scope at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
[7] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:358
[8] top-level scope at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Test\src\Test.jl:1156
[9] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:53
[10] top-level scope at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
[11] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:5
[12] include at .\boot.jl:326 [inlined]
[13] include_relative(::Module, ::String) at .\loading.jl:1038
[14] include(::Module, ::String) at .\sysimg.jl:29
[15] include(::String) at .\client.jl:403
[16] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\runtests.jl:21
[17] top-level scope at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
[18] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\runtests.jl:20
[19] include at .\boot.jl:326 [inlined]
[20] include_relative(::Module, ::String) at .\loading.jl:1038
[21] include(::Module, ::String) at .\sysimg.jl:29
[22] include(::String) at .\client.jl:403
[23] top-level scope at none:0
[24] eval(::Module, ::Any) at .\boot.jl:328
[25] exec_options(::Base.JLOptions) at .\client.jl:243
[26] _start() at .\client.jl:436
xt_trmm!: Error During Test at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:546
Got exception outside of a @test
CUBLASError(code 7, an invalid value was used as an argument)
Stacktrace:
[1] cublasXtDtrmm(::Ptr{Nothing}, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64, ::Array{Float64,1}, ::CuArray{Float64,2}, ::Int64, ::CuArray{Float64,2}, ::Int64, ::CuArray{Float64,2}, ::Int64) at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\src\blas\error.jl:45
[2] xt_trmm!(::Char, ::Char, ::Char, ::Char, ::Float64, ::CuArray{Float64,2}, ::CuArray{Float64,2}, ::CuArray{Float64,2}) at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\src\blas\wrappers.jl:2056
[3] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:548
[4] top-level scope at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
[5] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:547
[6] top-level scope at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
[7] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:358
[8] top-level scope at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Test\src\Test.jl:1156
[9] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:53
[10] top-level scope at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
[11] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:5
[12] include at .\boot.jl:326 [inlined]
[13] include_relative(::Module, ::String) at .\loading.jl:1038
[14] include(::Module, ::String) at .\sysimg.jl:29
[15] include(::String) at .\client.jl:403
[16] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\runtests.jl:21
[17] top-level scope at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
[18] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\runtests.jl:20
[19] include at .\boot.jl:326 [inlined]
[20] include_relative(::Module, ::String) at .\loading.jl:1038
[21] include(::Module, ::String) at .\sysimg.jl:29
[22] include(::String) at .\client.jl:403
[23] top-level scope at none:0
[24] eval(::Module, ::Any) at .\boot.jl:328
[25] exec_options(::Base.JLOptions) at .\client.jl:243
[26] _start() at .\client.jl:436
gemm_strided_batched!: Error During Test at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:459
Got exception outside of a @test
CUDA error: an illegal memory access was encountered (code #700, ERROR_ILLEGAL_ADDRESS)
Stacktrace:
[1] macro expansion at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CUDAdrv\ADRHQ\src\base.jl:145 [inlined]
[2] copy!#10(::Nothing, ::Bool, ::Function, ::Ptr{Complex{Float32}}, ::CUDAdrv.Mem.DeviceBuffer, ::Int64) at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CUDAdrv\ADRHQ\src\memory.jl:344
[3] copy! at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CUDAdrv\ADRHQ\src\memory.jl:335 [inlined]
[4] copyto!(::Array{Complex{Float32},3}, ::Int64, ::CuArray{Complex{Float32},3}, ::Int64, ::Int64) at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\src\array.jl:194
[5] copyto! at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\GPUArrays\joKVJ\src\abstractarray.jl:101 [inlined]
[6] Type at .\array.jl:482 [inlined]
[7] Array(::CuArray{Complex{Float32},3}) at .\boot.jl:426
[8] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:464
[9] top-level scope at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
[10] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:460
[11] top-level scope at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
[12] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:358
[13] top-level scope at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Test\src\Test.jl:1156
[14] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:53
[15] top-level scope at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
[16] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:5
[17] include at .\boot.jl:326 [inlined]
[18] include_relative(::Module, ::String) at .\loading.jl:1038
[19] include(::Module, ::String) at .\sysimg.jl:29
[20] include(::String) at .\client.jl:403
[21] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\runtests.jl:21
[22] top-level scope at C:\Users\julia\AppData\Local\Julia-1.1.1\share\julia\stdlib\v1.1\Test\src\Test.jl:1083
[23] top-level scope at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\runtests.jl:20
[24] include at .\boot.jl:326 [inlined]
[25] include_relative(::Module, ::String) at .\loading.jl:1038
[26] include(::Module, ::String) at .\sysimg.jl:29
[27] include(::String) at .\client.jl:403
[28] top-level scope at none:0
[29] eval(::Module, ::Any) at .\boot.jl:328
[30] exec_options(::Base.JLOptions) at .\client.jl:243
[31] _start() at .\client.jl:436

ERROR: LoadError: Some tests did not pass: 1900 passed, 0 failed, 622 errored, 0 broken.
in expression starting at C:\Users\User.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\runtests.jl:18
error in running finalizer: CUDAdrv.CuError(code=700, meta=nothing)
error in running finalizer: CUDAdrv.CuError(code=700, meta=nothing)

ERROR: Package CuArrays errored during testing

I only reproduced a part of the error message because it’s very huge. The parts I ommited, indicated by ... are messages similar to xt_trmm!: Error During Test at C:\Users\User\.juliapro\JuliaPro_v1.1.1.1\packages\CuArrays\eFBar\test\blas.jl:546 Got exception outside of a @test and to error in running finalizer: CUDAdrv.CuError(code=700, meta=nothing). I also have the Test Summary (Pass, Error, Total), which I don’t reproduce here becasue of text size restrictions.
Following another post, I updated all my packages with Pkg.update() , I reinstalled CUDAnative, CuArrays and CUDAdrv but hte problem still persists. Has anyone any idea why I have this message? My operating system is Windows 10, 64-bit.

This is cublasXtStrmm test failures on Windows 10 Julia 1.1 · Issue #124 · JuliaGPU/CUDA.jl · GitHub

cublasXt is unused by CuArrays’ high-level wrappers, so you should be safe with this submodule not working properly. But once an error hits, the CUDA library is defunc which explains the massive error output.

Ok thanks :slight_smile: Hope I will be able to use CUDA anyway :wink: