aboutsummaryrefslogtreecommitdiffstats
path: root/docker/nvidia-docker-toolkit/build_libnvidia_container.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/nvidia-docker-toolkit/build_libnvidia_container.sh')
-rwxr-xr-xdocker/nvidia-docker-toolkit/build_libnvidia_container.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/nvidia-docker-toolkit/build_libnvidia_container.sh b/docker/nvidia-docker-toolkit/build_libnvidia_container.sh
new file mode 100755
index 0000000..100caaf
--- /dev/null
+++ b/docker/nvidia-docker-toolkit/build_libnvidia_container.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+TOOLKIT_DIR=/home/devi/devi/nvidia-docker/container-toolkit/tools/container/toolkit
+TOOLKIT=${TOOLKIT_DIR}/toolkit
+torsocks make CFLAGS="-I/usr/include/tirpc -fPIC -O2" LDFLAGS=-ltirpc all
+ln -s libnvidia-container.so.1.10.0 libnvidia-container.so.1
+sudo cp libnvidia-container.so.1.10.0 /usr/lib64
+sudo ${TOOLKIT} install /home/devi/nvidia-docker-toolkit
+# nvidia-container-cli