aboutsummaryrefslogblamecommitdiffstats
path: root/docker/nvidia-docker-toolkit/build_libnvidia_container.sh
blob: daa6de046e604f58bbf8570c4e4260eae5996907 (plain) (tree)
1
2
3
4
5
6
7
8
9
10







                                                                                   

                                                                                  
#!/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
# all the executables should be in /usr/bin. cant use user's home directory paths.
# will run into permission problems.