Hmm…
using Pkg
Pkg.add("CUDA")
Pkg.add("BenchmarkTools")
using Plots, CUDA, BenchmarkTools
works just fine for me (well aside from the error shown below, but running the using
s again works). Additionally, CUDA.versioninfo()
works just fine and returns
CUDA runtime 12.6, artifact installation
CUDA driver 12.6
NVIDIA driver 550.54.15
CUDA libraries:
- CUBLAS: 12.6.4
- CURAND: 10.3.7
- CUFFT: 11.3.0
- CUSOLVER: 11.7.1
- CUSPARSE: 12.5.4
- CUPTI: 2024.3.2 (API 24.0.0)
- NVML: 12.0.0+550.54.15
Julia packages:
- CUDA: 5.6.1
- CUDA_Driver_jll: 0.10.4+0
- CUDA_Runtime_jll: 0.15.5+0
Toolchain:
- Julia: 1.10.8
- LLVM: 15.0.7
1 device:
0: Tesla T4 (sm_75, 14.738 GiB / 15.000 GiB available)
Can you provide more details (e.g. the code) on exactly what you’re doing?
Error seen when calling using CUDA
on fresh T4 GPU runtime:
InitError: could not load library "/root/.julia/artifacts/ac4708c3ef40405014c1080c17818cfa7d017563/lib/libGL.so"
/root/.julia/artifacts/ac4708c3ef40405014c1080c17818cfa7d017563/lib/libGL.so: undefined symbol: _glapi_tls_Current
during initialization of module Libglvnd_jll
Stacktrace:
[1] dlopen(s::String, flags::UInt32; throw_error::Bool)
@ Base.Libc.Libdl ./libdl.jl:117
[2] dlopen(s::String, flags::UInt32)
@ Base.Libc.Libdl ./libdl.jl:116
[3] macro expansion
@ ~/.julia/packages/JLLWrappers/GfYNv/src/products/library_generators.jl:63 [inlined]
[4] __init__()
@ Libglvnd_jll ~/.julia/packages/Libglvnd_jll/rKoF9/src/wrappers/x86_64-linux-gnu.jl:22
[5] run_module_init(mod::Module, i::Int64)
@ Base ./loading.jl:1193
[6] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
@ Base ./loading.jl:1181
[7] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
@ Base ./loading.jl:1126
[8] _tryrequire_from_serialized(modkey::Base.PkgId, path::String, ocachepath::String, sourcepath::String, depmods::Vector{Any})
@ Base ./loading.jl:1551
[9] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
@ Base ./loading.jl:1644
[10] _require(pkg::Base.PkgId, env::String)
@ Base ./loading.jl:2008
[11] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:1882
[12] #invoke_in_world#3
@ ./essentials.jl:926 [inlined]
[13] invoke_in_world
@ ./essentials.jl:923 [inlined]
[14] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:1873
[15] macro expansion
@ ./loading.jl:1860 [inlined]
[16] macro expansion
@ ./lock.jl:267 [inlined]
[17] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:1823
[18] #invoke_in_world#3
@ ./essentials.jl:926 [inlined]
[19] invoke_in_world
@ ./essentials.jl:923 [inlined]
[20] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1816