Closed lukego closed 11 months ago
JLL-provided libraries and binaries are not indented to be used in isolation:
julia> oneAPI.SPIRV_LLVM_Translator_unified_jll.llvm_spirv()
setenv(`/home/tim/.julia/artifacts/612d93515fc7555212b03aabd642b1014f315794/bin/llvm-spirv`,["PATH=/home/tim/.julia/artifacts/612d93515fc7555212b03aabd642b1014f315794/bin:/home/tim/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/games", "EDITOR=nano", "GIT_COMMITTER_EMAIL=tim.besard@gmail.com", "GIT_AUTHOR_NAME=Tim Besard", "LC_ALL=en_US.UTF-8", "LD_LIBRARY_PATH=/home/tim/Julia/depot/juliaup/julia-1.9.4+0.x64.linux.gnu/bin/../lib/julia:/home/tim/Julia/depot/juliaup/julia-1.9.4+0.x64.linux.gnu/bin/../lib", "LC_CTYPE=en_US.UTF-8", "DIRENV_WATCHES=eJxszs1KxDAQAOB3mXPZmc3PJundiyB4Fw-TZJYG0gbStAriu3uXvsDH9_ED7zwWmAGXtgqOsuLrUQvjTbazJ5jgreVRVoH5_ggPGxyRnuDlu-xjh3n0Q36nC-RWW-KK-8JdMJcu24lca_tCb6JXip1yTx-8cEiBUybndPaWOHIiJhODJS2avEkuPUnHkLW9a6_ksmT-lT7_AgAA__8eCkLH", "DIRENV_DIR=-/home/tim/Julia", "STARSHIP_SESSION_KEY=1380513656307742" … "XDG_SESSION_ID=26694", "LC_TERMINAL=iTerm2", "OCL_ICD_VENDORS=/home/tim/.julia/artifacts/44fab11d374e3be02bcbd8229c1f5f489470c6bf/lib/intel-opencl/libigdrcl.so", "SSH_CLIENT=100.82.95.56 52916 22", "STARSHIP_SHELL=zsh", "SSH_TTY=/dev/pts/0", "HOME=/home/tim", "TERM=xterm-256color", "OPENBLAS_MAIN_FREE=1"])
shell> /home/tim/.julia/artifacts/612d93515fc7555212b03aabd642b1014f315794/bin/llvm-spirv --version
/home/tim/.julia/artifacts/612d93515fc7555212b03aabd642b1014f315794/bin/llvm-spirv: error while loading shared libraries: libLLVM-14jl.so: cannot open shared object file: No such file or directory
julia> run(`$(oneAPI.SPIRV_LLVM_Translator_unified_jll.llvm_spirv()) --version`)
LLVM (http://llvm.org/):
LLVM version 14.0.6jl
Optimized build.
Default target: x86_64-linux-gnu
Host CPU: tigerlake
Process(setenv(`/home/tim/.julia/artifacts/612d93515fc7555212b03aabd642b1014f315794/bin/llvm-spirv --version`,["PATH=/home/tim/.julia/artifacts/612d93515fc7555212b03aabd642b1014f315794/bin:/home/tim/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/games", "EDITOR=nano", "GIT_COMMITTER_EMAIL=tim.besard@gmail.com", "GIT_AUTHOR_NAME=Tim Besard", "LC_ALL=en_US.UTF-8", "LD_LIBRARY_PATH=/home/tim/Julia/depot/juliaup/julia-1.9.4+0.x64.linux.gnu/bin/../lib/julia:/home/tim/Julia/depot/juliaup/julia-1.9.4+0.x64.linux.gnu/bin/../lib", "LC_CTYPE=en_US.UTF-8", "DIRENV_WATCHES=eJxszs1KxDAQAOB3mXPZmc3PJundiyB4Fw-TZJYG0gbStAriu3uXvsDH9_ED7zwWmAGXtgqOsuLrUQvjTbazJ5jgreVRVoH5_ggPGxyRnuDlu-xjh3n0Q36nC-RWW-KK-8JdMJcu24lca_tCb6JXip1yTx-8cEiBUybndPaWOHIiJhODJS2avEkuPUnHkLW9a6_ksmT-lT7_AgAA__8eCkLH", "DIRENV_DIR=-/home/tim/Julia", "STARSHIP_SESSION_KEY=1380513656307742" … "XDG_SESSION_ID=26694", "LC_TERMINAL=iTerm2", "OCL_ICD_VENDORS=/home/tim/.julia/artifacts/44fab11d374e3be02bcbd8229c1f5f489470c6bf/lib/intel-opencl/libigdrcl.so", "SSH_CLIENT=100.82.95.56 52916 22", "STARSHIP_SHELL=zsh", "SSH_TTY=/dev/pts/0", "HOME=/home/tim", "TERM=xterm-256color", "OPENBLAS_MAIN_FREE=1"]), ProcessExited(0))
This is likely Nix messing with the runtime environment set-up by JLLWrappers, including LD_LIBRARY_PATH.
I close this because it sounds like an issue with the Nix packaging.
(I don't want to fight with Nix-vs-Julia at the moment so I'll switch to CUDA which works out of the box.)
Happy to improve the situation for Nix users, but this may require some changes to the underlying infrastructure (JLLWrappers) instead. You could try running with LD_DEBUG=libs
to see what configuration is being used by the call to llvm-spirv.
I tried running the KernelAbstractions.jl Quickstart instructions on my laptop (NixOS Thinkpad T490s with Julia 1.9.3 installed from the NixOS binary.) I'm seeing errors that look superficially like incomplete installation of oneAPI.jl dependencies.
More complete output is on a gist but here's the gist:
oneAPI looks happy on the surface:
but running the KernelAbstractions.jl Quickstart example fails:
where
ENOENT
seems to be on executingllvm-spirv
:and it seems to be expecting to find share libraries that aren't there:
I'm wondering if this is a bug in the Julia libraries, or a bug in the NixOS packaging of Julia, or user error?