Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not find versioned libraries #10

Closed
benz0li opened this issue Apr 9, 2024 · 4 comments
Closed

Does not find versioned libraries #10

benz0li opened this issue Apr 9, 2024 · 4 comments

Comments

@benz0li
Copy link

benz0li commented Apr 9, 2024

Discussion: JuliaGPU/CUDA.jl#2318

@benz0li
Copy link
Author

benz0li commented Apr 9, 2024

Workarounds: Either

  • install the -dev packages of the required libraries

or

  • create unversioned symlinks for all required libraries

i.e.

libDir=/usr/local/cuda/lib64
for f in "$libDir/"*; do
  [ -e "$f" ] || [ -L "$f" ] || continue
  src="$(basename "$f" | grep "^lib.*.so.[[:digit:]]\+$")"
  if [ -s "$libDir/$src" ] && [ ! -e "$libDir/${src%.*}" ]; then
    ln -svT "$src" "$libDir/${src%.*}"
  fi
done

Ping @maleadt

@maleadt
Copy link
Member

maleadt commented Apr 9, 2024

Should be fixed by e2c157b; can you try? I verified locally with a runtime container + cuda-cupti + cuda-nvcc + cuda-command-line-tools.

FYI, it should be possible to make ptxas or even nvdisasm optional and rely on the driver to assemble code, in case you would require a more lightweight container (seeing how cuda-nvcc pulls in an entire C++ development toolchain).

@benz0li
Copy link
Author

benz0li commented Apr 9, 2024

Should be fixed by e2c157b; can you try? I verified locally with a runtime container + cuda-cupti + cuda-nvcc + cuda-command-line-tools.

Confirmed.

FYI, it should be possible to make ptxas or even nvdisasm optional and rely on the driver to assemble code

🆗

in case you would require a more lightweight container (seeing how cuda-nvcc pulls in an entire C++ development toolchain).

Currently not required, because the C++ development toolchain is installed in a later [image build] stage anyway.

@benz0li benz0li closed this as completed Apr 9, 2024
@maleadt
Copy link
Member

maleadt commented Apr 9, 2024

Thanks for confirming. I'll tag a release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants