Hi,
I use juliaup to have 1.10 and 1.9 version. I have an application working with 1.9, CUDA (ML with Flux). When I switch to Julia 1.10 I’m unable to add CUDA. (I have the last NVIDIA driver installed). This is the error :
(@v1.10) pkg> add CUDA
Resolving package versions...
ERROR: LoadError: failed process: Process(setenv(`'C:\Users\belle\.julia\juliaup\julia-1.10.0+0.x64.w64.mingw32\libexec\julia\lld.exe' -flavor gnu -m i386pep -Bdynamic --enable-auto-image-base --allow-multiple-d
…
Stacktrace:
[1] pipeline_error
@ Base .\process.jl:565 [inlined]
[2] run(::Cmd, ::Base.DevNull, ::Vararg{Any}; wait::Bool)
@ Base .\process.jl:480
[3] run
@ Base .\process.jl:477 [inlined]
[4] link_image (repeats 2 times)
@ Base.Linking .\linking.jl:166 [inlined]
[5] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base .\loading.jl:2373
[6] compilecache
@ Base .\loading.jl:2334 [inlined]
[7] (::Base.var"#968#969"{Base.PkgId})()
@ Base .\loading.jl:1968
[8] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile C:\Users\belle\.julia\juliaup\julia-1.10.0+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93
[9] #mkpidlock#6
@ FileWatching.Pidfile C:\Users\belle\.julia\juliaup\julia-1.10.0+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
[10] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
@ FileWatching.Pidfile C:\Users\belle\.julia\juliaup\julia-1.10.0+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111
[11] #invokelatest#2
@ Base .\essentials.jl:889 [inlined]
[12] invokelatest
@ Base .\essentials.jl:884 [inlined]
[13] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
@ Base .\loading.jl:2977
[14] maybe_cachefile_lock
@ Base .\loading.jl:2974 [inlined]
[15] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1964
[16] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1806
[17] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[18] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[19] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1797
[20] macro expansion
@ Base .\loading.jl:1784 [inlined]
[21] macro expansion
@ Base .\lock.jl:267 [inlined]
[22] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:1747
[23] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[24] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[25] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1740
[26] top-level scope
@ C:\Users\belle\.julia\packages\JLLWrappers\pG9bm\src\JLLWrappers.jl:8
[27] include
@ Base .\Base.jl:495 [inlined]
[28] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
@ Base .\loading.jl:2216
[29] top-level scope
@ stdin:3
in expression starting at C:\Users\belle\.julia\packages\JLLWrappers\pG9bm\src\JLLWrappers.jl:1
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile JLLWrappers [692b3bcd-3c85-4b1f-b108-f13ce0eb3210] to "C:\\Users\\belle\\.julia\\compiled\\v1.10\\JLLWrappers\\jl_2166.tmp".
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base .\loading.jl:2462
[3] compilecache
@ Base .\loading.jl:2334 [inlined]
[4] (::Base.var"#968#969"{Base.PkgId})()
@ Base .\loading.jl:1968
[5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile C:\Users\belle\.julia\juliaup\julia-1.10.0+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93
[6] #mkpidlock#6
@ FileWatching.Pidfile C:\Users\belle\.julia\juliaup\julia-1.10.0+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
[7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
@ FileWatching.Pidfile C:\Users\belle\.julia\juliaup\julia-1.10.0+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111
[8] #invokelatest#2
@ Base .\essentials.jl:889 [inlined]
[9] invokelatest
@ Base .\essentials.jl:884 [inlined]
[10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
@ Base .\loading.jl:2977
[11] maybe_cachefile_lock
@ Base .\loading.jl:2974 [inlined]
[12] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1964
[13] __require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1806
[14] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[15] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[16] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1797
[17] macro expansion
@ Base .\loading.jl:1784 [inlined]
[18] macro expansion
@ Base .\lock.jl:267 [inlined]
[19] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:1747
[20] #invoke_in_world#3
@ Base .\essentials.jl:921 [inlined]
[21] invoke_in_world
@ Base .\essentials.jl:918 [inlined]
[22] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1740
[23] include
@ Base .\Base.jl:495 [inlined]
[24] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
@ Base .\loading.jl:2216
[25] top-level scope
@ stdin:3
in expression starting at C:\Users\belle\.julia\packages\CUDA_Driver_jll\e86kc\src\CUDA_Driver_jll.jl:2
in expression starting at stdin:3
ERROR: failed to parse TOML output from running "C:\\Users\\belle\\.julia\\packages\\CUDA_Runtime_jll\\rcOoh\\.pkg\\select_artifacts.jl", got:
TOML Parser error:
none:1:5 error: expected equal sign after key
LLVM ERROR: out of memory
^
it works with Julia 1.9… I have tested many things but I run out of ideas.
Thanks for your help