nvidia-docker: init at 2.0.3
nvidia_x11 and persistenced were modified to provide binaries which can be mounted inside a docker-container to be executed there. most ldconfig-based discovery of bundled nvidia libraries is patched out ldconfig itself is patched to be able to deal with patchelf'ed libraries See https://sourceware.org/bugzilla/show_bug.cgi?id=23964
This commit is contained in:
@@ -129,6 +129,8 @@ installPhase() {
|
||||
for i in nvidia-cuda-mps-control nvidia-cuda-mps-server nvidia-smi nvidia-debugdump; do
|
||||
if [ -e "$i" ]; then
|
||||
install -Dm755 $i $bin/bin/$i
|
||||
# unmodified binary backup for mounting in containers
|
||||
install -Dm755 $i $bin/origBin/$i
|
||||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||
--set-rpath $out/lib:$libPath $bin/bin/$i
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user