Commit d878eb6f authored by easybuild's avatar easybuild

fix GPU

parent 38195647
This diff is collapsed.
This diff is collapsed.
Bootstrap: docker
From: debian:jessie
%setup
cp /apps/easybuild/sources/n/NVIDIA/NVIDIA-Linux-x86_64-390.30.run /tmp
%post
apt -y update && apt -y upgrade
apt -y install python curl wget gcc g++ make vim mc libncurses-dev rsync tclsh lua5.2 liblua5.2 gfortran ssh
curl -s -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install setuptools python-graph-core python-graph-dot tabulate numpy scipy pandas wheel --upgrade
wget https://github.com/luarocks/luarocks/archive/v2.4.2.tar.gz
tar xvf v2.4.2.tar.gz
cd luarocks-2.4.2
./configure
make build
make install
mkdir ~/.luarocks
echo "fs_use_modules = false" > ~/.luarocks/config.lua
luarocks install luaposix
luarocks install luafilesystem
LUAROCKS_PREFIX=/usr/local
export LUA_PATH="$LUAROCKS_PREFIX/share/lua/5.1/?.lua;$LUAROCKS_PREFIX/share/lua/5.1/?/init.lua;;"
export LUA_CPATH="$LUAROCKS_PREFIX/lib/lua/5.1/?.so;;"
echo "# !/bin/bash" > /bin/logger
echo "exit 0" >> /bin/logger
chmod +x /bin/logger
# Lmod
wget https://github.com/TACC/Lmod/archive/7.7.7.tar.gz
tar xvf 7.7.7.tar.gz
cd Lmod-7.7.7
./configure --prefix=/opt/apps
make install
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.gz
tar xvf openmpi-2.1.1.tar.gz && cd openmpi-2.1.1
./configure --prefix=/usr/local
make -j 16
make install
# GPU
driver_version=390.30
driver="/tmp/NVIDIA-Linux-x86_64-$driver_version.run"
sh $driver -x
mv NVIDIA-Linux-x86_64-$driver_version /usr/local/
dir=/usr/local/NVIDIA-Linux-x86_64-$driver_version
cd $dir
ln -s libcuda.so.$driver_version libcuda.so
ln -s libEGL.so.$driver_version libEGL.so
ln -s libGLESv1_CM.so.$driver_version libGLESv1_CM.so
ln -s libGLESv2.so.$driver_version libGLESv2.so
ln -s libGL.so.$driver_version libGL.so
ln -s libglx.so.$driver_version libglx.so
ln -s libnvcuvid.so.$driver_version libnvcuvid.so
ln -s libnvidia-cfg.so.$driver_version libnvidia-cfg.so
ln -s libnvidia-compiler.so.$driver_version libnvidia-compiler.so
ln -s libnvidia-eglcore.so.$driver_version libnvidia-eglcore.so
ln -s libnvidia-encode.so.$driver_version libnvidia-encode.so
ln -s libnvidia-fbc.so.$driver_version libnvidia-fbc.so
ln -s libnvidia-glcore.so.$driver_version libnvidia-glcore.so
ln -s libnvidia-glsi.so.$driver_version libnvidia-glsi.so
ln -s libnvidia-gtk2.so.$driver_version libnvidia-gtk2.so
ln -s libnvidia-gtk3.so.$driver_version libnvidia-gtk3.so
ln -s libnvidia-ifr.so.$driver_version libnvidia-ifr.so
ln -s libnvidia-ml.so.$driver_version libnvidia-ml.so
ln -s libnvidia-ml.so.$driver_version libnvidia-ml.so.1
ln -s libnvidia-opencl.so.$driver_version libnvidia-opencl.so
ln -s libnvidia-tls.so.$driver_version libnvidia-tls.so
ln -s libnvidia-wfb.so.$driver_version libnvidia-wfb.so
ln -s libvdpau_nvidia.so.$driver_version libvdpau_nvidia.so
ln -s libvdpau.so.$driver_version libvdpau.so
ln -s libvdpau_trace.so.$driver_version libvdpau_trace.so
ln -s libcuda.so.$driver_version libcuda.so.1
cd /bin
rm sh && ln -s /bin/bash sh
# APPS and SCRATCH
mkdir /apps
mkdir /scratch
%environment
source /opt/apps/lmod/7.7.7/init/profile
clearMT
export -f ml
export -f module
export -f clearMT
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/NVIDIA-Linux-x86_64-390.30:$LD_LIBRARY_PATH
export PATH=/usr/local/NVIDIA-Linux-x86_64-390.30:/usr/local/cuda/bin:$PATH
......@@ -27,24 +27,30 @@ echo "# !/bin/bash" > /bin/logger
echo "exit 0" >> /bin/logger
chmod +x /bin/logger
# Lmod
wget https://github.com/TACC/Lmod/archive/7.7.7.tar.gz
tar xvf 7.7.7.tar.gz
cd Lmod-7.7.7
./configure --prefix=/opt/apps
make install
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.gz
tar xvf openmpi-2.1.1.tar.gz && cd openmpi-2.1.1
./configure --prefix=/usr/local
make -j 14
make -j 16
make install
cd /bin
rm sh && ln -s /bin/bash sh
rm /tmp/get-pip.py /tmp/openmpi-2.1.0.tar.gz -rf
# APPS and SCRATCH
mkdir /apps
mkdir /scratch
%environment
. /apps/all/Lmod/7.7.7/lmod/lmod/init/profile
ml purge --force
source /opt/apps/lmod/7.7.7/init/profile
clearMT
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export -f ml
export -f module
......
Bootstrap: docker
From: ubuntu:latest
%setup
cp /apps/easybuild/sources/n/NVIDIA/NVIDIA-Linux-x86_64-390.30.run /tmp
%post
apt -y update && apt -y upgrade
apt -y install python curl wget gcc g++ make vim mc libncurses-dev rsync tclsh lua5.2 liblua5.2 gfortran ssh
curl -s -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install setuptools python-graph-core python-graph-dot tabulate numpy scipy pandas wheel --upgrade
wget https://github.com/luarocks/luarocks/archive/v2.4.2.tar.gz
tar xvf v2.4.2.tar.gz
cd luarocks-2.4.2
./configure
make build
make install
mkdir ~/.luarocks
echo "fs_use_modules = false" > ~/.luarocks/config.lua
luarocks install luaposix
luarocks install luafilesystem
LUAROCKS_PREFIX=/usr/local
export LUA_PATH="$LUAROCKS_PREFIX/share/lua/5.1/?.lua;$LUAROCKS_PREFIX/share/lua/5.1/?/init.lua;;"
export LUA_CPATH="$LUAROCKS_PREFIX/lib/lua/5.1/?.so;;"
echo "# !/bin/bash" > /bin/logger
echo "exit 0" >> /bin/logger
chmod +x /bin/logger
# Lmod
wget https://github.com/TACC/Lmod/archive/7.7.7.tar.gz
tar xvf 7.7.7.tar.gz
cd Lmod-7.7.7
./configure --prefix=/opt/apps
make install
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.gz
tar xvf openmpi-2.1.1.tar.gz && cd openmpi-2.1.1
./configure --prefix=/usr/local
make -j 16
make install
# GPU
driver_version=390.30
driver="/tmp/NVIDIA-Linux-x86_64-$driver_version.run"
sh $driver -x
mv NVIDIA-Linux-x86_64-$driver_version /usr/local/
dir=/usr/local/NVIDIA-Linux-x86_64-$driver_version
cd $dir
ln -s libcuda.so.$driver_version libcuda.so
ln -s libEGL.so.$driver_version libEGL.so
ln -s libGLESv1_CM.so.$driver_version libGLESv1_CM.so
ln -s libGLESv2.so.$driver_version libGLESv2.so
ln -s libGL.so.$driver_version libGL.so
ln -s libglx.so.$driver_version libglx.so
ln -s libnvcuvid.so.$driver_version libnvcuvid.so
ln -s libnvidia-cfg.so.$driver_version libnvidia-cfg.so
ln -s libnvidia-compiler.so.$driver_version libnvidia-compiler.so
ln -s libnvidia-eglcore.so.$driver_version libnvidia-eglcore.so
ln -s libnvidia-encode.so.$driver_version libnvidia-encode.so
ln -s libnvidia-fbc.so.$driver_version libnvidia-fbc.so
ln -s libnvidia-glcore.so.$driver_version libnvidia-glcore.so
ln -s libnvidia-glsi.so.$driver_version libnvidia-glsi.so
ln -s libnvidia-gtk2.so.$driver_version libnvidia-gtk2.so
ln -s libnvidia-gtk3.so.$driver_version libnvidia-gtk3.so
ln -s libnvidia-ifr.so.$driver_version libnvidia-ifr.so
ln -s libnvidia-ml.so.$driver_version libnvidia-ml.so
ln -s libnvidia-ml.so.$driver_version libnvidia-ml.so.1
ln -s libnvidia-opencl.so.$driver_version libnvidia-opencl.so
ln -s libnvidia-tls.so.$driver_version libnvidia-tls.so
ln -s libnvidia-wfb.so.$driver_version libnvidia-wfb.so
ln -s libvdpau_nvidia.so.$driver_version libvdpau_nvidia.so
ln -s libvdpau.so.$driver_version libvdpau.so
ln -s libvdpau_trace.so.$driver_version libvdpau_trace.so
ln -s libcuda.so.$driver_version libcuda.so.1
# APPS and SCRATCH
mkdir /apps
mkdir /scratch
cd /bin
rm sh && ln -s /bin/bash sh
%environment
source /opt/apps/lmod/7.7.7/init/profile
clearMT
export -f ml
export -f module
export -f clearMT
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/NVIDIA-Linux-x86_64-390.30:$LD_LIBRARY_PATH
export PATH=/usr/local/NVIDIA-Linux-x86_64-390.30:/usr/local/cuda/bin:$PATH
......@@ -27,21 +27,30 @@ echo "# !/bin/bash" > /bin/logger
echo "exit 0" >> /bin/logger
chmod +x /bin/logger
# Lmod
wget https://github.com/TACC/Lmod/archive/7.7.7.tar.gz
tar xvf 7.7.7.tar.gz
cd Lmod-7.7.7
./configure --prefix=/opt/apps
make install
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.gz
tar xvf openmpi-2.1.1.tar.gz && cd openmpi-2.1.1
./configure --prefix=/usr/local
make -j 14
make -j 16
make install
# APPS and SCRATCH
mkdir /apps
mkdir /scratch
cd /bin
rm sh && ln -s /bin/bash sh
rm /tmp/get-pip.py /tmp/openmpi-2.1.0.tar.gz -rf
%environment
. /apps/all/Lmod/7.7.7/lmod/lmod/init/profile
ml purge --force
source /opt/apps/lmod/7.7.7/init/profile
clearMT
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export -f ml
export -f module
......
......@@ -10,19 +10,15 @@ yum -y install python gcc make wget vim mc procps tcl gcc-c++ gcc-gfortran pkg-c
# Fedora repo
yum -y install bash-completion pigz tmux
# OpenHPC
yum -y install https://github.com/openhpc/ohpc/releases/download/v1.3.GA/ohpc-release-1.3-1.el7.x86_64.rpm
yum -y install openmpi openblas lapack htop
yum -y groupinstall "Development Tools"
cd /tmp
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.0.tar.gz
tar xvf openmpi-2.1.0.tar.gz && cd openmpi-2.1.0
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.gz
tar xvf openmpi-2.1.1.tar.gz && cd openmpi-2.1.1
./configure --prefix=/usr/local
make -j 14
make -j 16
make install
# pip
......@@ -42,12 +38,21 @@ rpm -ihv lua-filesystem-1.6.2-2.el7.x86_64.rpm
rpm -ihv lua-bitop-1.0.2-3.el7.x86_64.rpm
rpm -ihv lua-posix-32-2.el7.x86_64.rpm
# Lmod
wget https://github.com/TACC/Lmod/archive/7.7.7.tar.gz
tar xvf 7.7.7.tar.gz
cd Lmod-7.7.7
./configure --prefix=/opt/apps
make install
# APPS and SCRATCH
mkdir /apps
mkdir /scratch
%environment
. /apps/all/Lmod/7.2.2/lmod/lmod/init/profile
ml purge --force
source /opt/apps/lmod/7.7.7/init/profile
clearMT
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export -f ml
export -f module
export -f clearMT
This diff is collapsed.
......@@ -27,24 +27,30 @@ echo "# !/bin/bash" > /bin/logger
echo "exit 0" >> /bin/logger
chmod +x /bin/logger
# Lmod
wget https://github.com/TACC/Lmod/archive/7.7.7.tar.gz
tar xvf 7.7.7.tar.gz
cd Lmod-7.7.7
./configure --prefix=/opt/apps
make install
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.gz
tar xvf openmpi-2.1.1.tar.gz && cd openmpi-2.1.1
./configure --prefix=/usr/local
make -j 14
make -j 16
make install
cd /bin
rm sh && ln -s /bin/bash sh
rm /tmp/get-pip.py /tmp/openmpi-2.1.0.tar.gz -rf
# APPS and SCRATCH
mkdir /apps
mkdir /scratch
%environment
. /apps/all/Lmod/7.7.7/lmod/lmod/init/profile
ml purge --force
source /opt/apps/lmod/7.7.7/init/profile
clearMT
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export -f ml
export -f module
......
Bootstrap: docker
From: debian:jessie
%setup
cp /apps/easybuild/sources/n/NVIDIA/NVIDIA-Linux-x86_64-390.30.run /tmp
%post
apt -y update && apt -y upgrade
apt -y install python curl wget gcc g++ make vim mc libncurses-dev rsync tclsh lua5.2 liblua5.2 gfortran ssh
curl -s -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install setuptools python-graph-core python-graph-dot tabulate numpy scipy pandas wheel --upgrade
wget https://github.com/luarocks/luarocks/archive/v2.4.2.tar.gz
tar xvf v2.4.2.tar.gz
cd luarocks-2.4.2
./configure
make build
make install
mkdir ~/.luarocks
echo "fs_use_modules = false" > ~/.luarocks/config.lua
luarocks install luaposix
luarocks install luafilesystem
LUAROCKS_PREFIX=/usr/local
export LUA_PATH="$LUAROCKS_PREFIX/share/lua/5.1/?.lua;$LUAROCKS_PREFIX/share/lua/5.1/?/init.lua;;"
export LUA_CPATH="$LUAROCKS_PREFIX/lib/lua/5.1/?.so;;"
echo "# !/bin/bash" > /bin/logger
echo "exit 0" >> /bin/logger
chmod +x /bin/logger
# Lmod
wget https://github.com/TACC/Lmod/archive/7.7.7.tar.gz
tar xvf 7.7.7.tar.gz
cd Lmod-7.7.7
./configure --prefix=/opt/apps
make install
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.gz
tar xvf openmpi-2.1.1.tar.gz && cd openmpi-2.1.1
./configure --prefix=/usr/local
make -j 16
make install
# GPU
driver_version=390.30
driver="/tmp/NVIDIA-Linux-x86_64-$driver_version.run"
sh $driver -x
mv NVIDIA-Linux-x86_64-$driver_version /usr/local/
dir=/usr/local/NVIDIA-Linux-x86_64-$driver_version
cd $dir
ln -s libcuda.so.$driver_version libcuda.so
ln -s libEGL.so.$driver_version libEGL.so
ln -s libGLESv1_CM.so.$driver_version libGLESv1_CM.so
ln -s libGLESv2.so.$driver_version libGLESv2.so
ln -s libGL.so.$driver_version libGL.so
ln -s libglx.so.$driver_version libglx.so
ln -s libnvcuvid.so.$driver_version libnvcuvid.so
ln -s libnvidia-cfg.so.$driver_version libnvidia-cfg.so
ln -s libnvidia-compiler.so.$driver_version libnvidia-compiler.so
ln -s libnvidia-eglcore.so.$driver_version libnvidia-eglcore.so
ln -s libnvidia-encode.so.$driver_version libnvidia-encode.so
ln -s libnvidia-fbc.so.$driver_version libnvidia-fbc.so
ln -s libnvidia-glcore.so.$driver_version libnvidia-glcore.so
ln -s libnvidia-glsi.so.$driver_version libnvidia-glsi.so
ln -s libnvidia-gtk2.so.$driver_version libnvidia-gtk2.so
ln -s libnvidia-gtk3.so.$driver_version libnvidia-gtk3.so
ln -s libnvidia-ifr.so.$driver_version libnvidia-ifr.so
ln -s libnvidia-ml.so.$driver_version libnvidia-ml.so
ln -s libnvidia-ml.so.$driver_version libnvidia-ml.so.1
ln -s libnvidia-opencl.so.$driver_version libnvidia-opencl.so
ln -s libnvidia-tls.so.$driver_version libnvidia-tls.so
ln -s libnvidia-wfb.so.$driver_version libnvidia-wfb.so
ln -s libvdpau_nvidia.so.$driver_version libvdpau_nvidia.so
ln -s libvdpau.so.$driver_version libvdpau.so
ln -s libvdpau_trace.so.$driver_version libvdpau_trace.so
ln -s libcuda.so.$driver_version libcuda.so.1
cd /bin
rm sh && ln -s /bin/bash sh
# APPS and SCRATCH
mkdir /apps
mkdir /scratch
%environment
source /opt/apps/lmod/7.7.7/init/profile
clearMT
export -f ml
export -f module
export -f clearMT
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/NVIDIA-Linux-x86_64-390.30:$LD_LIBRARY_PATH
export PATH=/usr/local/NVIDIA-Linux-x86_64-390.30:/usr/local/cuda/bin:$PATH
......@@ -27,21 +27,30 @@ echo "# !/bin/bash" > /bin/logger
echo "exit 0" >> /bin/logger
chmod +x /bin/logger
# Lmod
wget https://github.com/TACC/Lmod/archive/7.7.7.tar.gz
tar xvf 7.7.7.tar.gz
cd Lmod-7.7.7
./configure --prefix=/opt/apps
make install
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.gz
tar xvf openmpi-2.1.1.tar.gz && cd openmpi-2.1.1
./configure --prefix=/usr/local
make -j 14
make -j 16
make install
# APPS and SCRATCH
mkdir /apps
mkdir /scratch
cd /bin
rm sh && ln -s /bin/bash sh
rm /tmp/get-pip.py /tmp/openmpi-2.1.0.tar.gz -rf
%environment
. /apps/all/Lmod/7.7.7/lmod/lmod/init/profile
ml purge --force
source /opt/apps/lmod/7.7.7/init/profile
clearMT
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export -f ml
export -f module
......
Bootstrap: docker
From: ubuntu:latest
%setup
cp /apps/easybuild/sources/n/NVIDIA/NVIDIA-Linux-x86_64-390.30.run /tmp
%post
apt -y update && apt -y upgrade
apt -y install python curl wget gcc g++ make vim mc libncurses-dev rsync tclsh lua5.2 liblua5.2 gfortran ssh
curl -s -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install setuptools python-graph-core python-graph-dot tabulate numpy scipy pandas wheel --upgrade
wget https://github.com/luarocks/luarocks/archive/v2.4.2.tar.gz
tar xvf v2.4.2.tar.gz
cd luarocks-2.4.2
./configure
make build
make install
mkdir ~/.luarocks
echo "fs_use_modules = false" > ~/.luarocks/config.lua
luarocks install luaposix
luarocks install luafilesystem
LUAROCKS_PREFIX=/usr/local
export LUA_PATH="$LUAROCKS_PREFIX/share/lua/5.1/?.lua;$LUAROCKS_PREFIX/share/lua/5.1/?/init.lua;;"
export LUA_CPATH="$LUAROCKS_PREFIX/lib/lua/5.1/?.so;;"
echo "# !/bin/bash" > /bin/logger
echo "exit 0" >> /bin/logger
chmod +x /bin/logger
# Lmod
wget https://github.com/TACC/Lmod/archive/7.7.7.tar.gz
tar xvf 7.7.7.tar.gz
cd Lmod-7.7.7
./configure --prefix=/opt/apps
make install
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.gz
tar xvf openmpi-2.1.1.tar.gz && cd openmpi-2.1.1
./configure --prefix=/usr/local
make -j 16
make install
# GPU
driver_version=390.30
driver="/tmp/NVIDIA-Linux-x86_64-$driver_version.run"
sh $driver -x
mv NVIDIA-Linux-x86_64-$driver_version /usr/local/
dir=/usr/local/NVIDIA-Linux-x86_64-$driver_version
cd $dir
ln -s libcuda.so.$driver_version libcuda.so
ln -s libEGL.so.$driver_version libEGL.so
ln -s libGLESv1_CM.so.$driver_version libGLESv1_CM.so
ln -s libGLESv2.so.$driver_version libGLESv2.so
ln -s libGL.so.$driver_version libGL.so
ln -s libglx.so.$driver_version libglx.so
ln -s libnvcuvid.so.$driver_version libnvcuvid.so
ln -s libnvidia-cfg.so.$driver_version libnvidia-cfg.so
ln -s libnvidia-compiler.so.$driver_version libnvidia-compiler.so
ln -s libnvidia-eglcore.so.$driver_version libnvidia-eglcore.so
ln -s libnvidia-encode.so.$driver_version libnvidia-encode.so
ln -s libnvidia-fbc.so.$driver_version libnvidia-fbc.so
ln -s libnvidia-glcore.so.$driver_version libnvidia-glcore.so
ln -s libnvidia-glsi.so.$driver_version libnvidia-glsi.so
ln -s libnvidia-gtk2.so.$driver_version libnvidia-gtk2.so
ln -s libnvidia-gtk3.so.$driver_version libnvidia-gtk3.so
ln -s libnvidia-ifr.so.$driver_version libnvidia-ifr.so
ln -s libnvidia-ml.so.$driver_version libnvidia-ml.so
ln -s libnvidia-ml.so.$driver_version libnvidia-ml.so.1
ln -s libnvidia-opencl.so.$driver_version libnvidia-opencl.so
ln -s libnvidia-tls.so.$driver_version libnvidia-tls.so
ln -s libnvidia-wfb.so.$driver_version libnvidia-wfb.so
ln -s libvdpau_nvidia.so.$driver_version libvdpau_nvidia.so
ln -s libvdpau.so.$driver_version libvdpau.so
ln -s libvdpau_trace.so.$driver_version libvdpau_trace.so
ln -s libcuda.so.$driver_version libcuda.so.1
# APPS and SCRATCH
mkdir /apps
mkdir /scratch
cd /bin
rm sh && ln -s /bin/bash sh
%environment
source /opt/apps/lmod/7.7.7/init/profile
clearMT
export -f ml
export -f module
export -f clearMT
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/NVIDIA-Linux-x86_64-390.30:$LD_LIBRARY_PATH
export PATH=/usr/local/NVIDIA-Linux-x86_64-390.30:/usr/local/cuda/bin:$PATH
......@@ -8,8 +8,8 @@
if [[ $# -eq 0 ]]; then
printf "\e[31m
./install.sh\e[0m ... create and build singularity image
-\e[33mi\e[0m OS (\e[33mCentOS\e[0m, \e[33mFedora\e[0m, \e[33mDebian\e[0m, \e[33mUbuntu\e[0m)
-\e[33mv\e[0m Version OS (CentOS \e[33m6.9\e[0m or CentOS \e[33m7.4\e[0m, Fedora \e[33m26\e[0m, Debian \e[33m8.0\e[0m, Ubuntu \e[33m16.04\e[0m)
-\e[33mi\e[0m OS (\e[33mCentOS\e[0m, \e[33mDebian\e[0m, \e[33mUbuntu\e[0m)
-\e[33mv\e[0m Version OS (CentOS \e[33m6.9\e[0m or CentOS \e[33m7.4\e[0m, Debian \e[33m8.0\e[0m, Ubuntu \e[33m16.04\e[0m)
-\e[33mo\e[0m OpenMPI module (default is \e[31mOpenMPI/2.1.1-GCC-6.3.0-2.27\e[0m)
-\e[33mt\e[0m \e[33mclassic\e[0m, \e[33mGPU\e[0m, \e[33mMIC\e[0m (default is \e[31mclassic\e[0m)
Example:
......@@ -136,9 +136,9 @@ else
fi
if [ -z "$IMAGE" ]; then
echo -e "Please, specify singularity image (-i \e[31mCentOS\e[0m, \e[31mFedora\e[0m, \e[31mDebian\e[0m, \e[31mUbuntu\e[0m)"
echo -e "Please, specify singularity image (-i \e[31mCentOS\e[0m, \e[31mDebian\e[0m, \e[31mUbuntu\e[0m)"
exit 1
elif [ "$IMAGE" == "CentOS" ] || [ "$IMAGE" == "Fedora" ] || [ "$IMAGE" == "Debian" ] || [ "$IMAGE" == "Ubuntu" ]; then
elif [ "$IMAGE" == "CentOS" ] || [ "$IMAGE" == "Debian" ] || [ "$IMAGE" == "Ubuntu" ]; then
echo -e "Image .................................. [\e[32mOK\e[0m]"
else
echo -e "Image .................................. [\e[31mERROR\e[0m]"
......@@ -147,9 +147,9 @@ else
fi
if [ -z "$VERSION" ]; then
echo -e "Please, specify OS version (-v CentOS \e[31m6.9\e[0m or CentOS \e[31m7.3\e[0m, Fedora \e[31m26\e[0m, Debian \e[31m8.0\e[0m, Ubuntu \e[31m16.04\e[0m)"
echo -e "Please, specify OS version (-v CentOS \e[31m6.9\e[0m or CentOS \e[31m7.4\e[0m, Debian \e[31m8.0\e[0m, Ubuntu \e[31m16.04\e[0m)"
exit 1
elif ([ "$IMAGE" == "CentOS" ] && [ "$VERSION" == "6.9" ]) || ([ "$IMAGE" == "CentOS" ] && [ "$VERSION" == "7.3" ]) || ([ "$IMAGE" == "Fedora" ] && [ "$VERSION" == "26" ]) || ([ "$IMAGE" == "Debian" ] && [ "$VERSION" == "8.0" ]) || ([ "$IMAGE" == "Ubuntu" ] && [ "$VERSION" == "16.04" ]); then
elif ([ "$IMAGE" == "CentOS" ] && [ "$VERSION" == "6.9" ]) || ([ "$IMAGE" == "CentOS" ] && [ "$VERSION" == "7.4" ]) || ([ "$IMAGE" == "Debian" ] && [ "$VERSION" == "8.0" ]) || ([ "$IMAGE" == "Ubuntu" ] && [ "$VERSION" == "16.04" ]); then
echo -e "Version ................................ [\e[32mOK\e[0m]"
else
echo -e "Version ................................ [\e[31mERROR\e[0m]"
......@@ -201,12 +201,18 @@ if [ "$IMAGE" == "CentOS" ]; then
BOOTSTRAP="CENTOS74$TYPE"
fi
fi
elif [ "$IMAGE" == "Fedora" ]; then
BOOTSTRAP="FEDORA"
elif [ "$IMAGE" == "Debian" ]; then
BOOTSTRAP="DEBIAN"
if [ "$TYPE" == "classic" ]; then
BOOTSTRAP="DEBIAN"
else
BOOTSTRAP="DEBIAN$TYPE"
fi
elif [ "$IMAGE" == "Ubuntu" ]; then
BOOTSTRAP="UBUNTU"
if [ "$TYPE" == "classic" ]; then
BOOTSTRAP="UBUNTU"
else
BOOTSTRAP="UBUNTU$TYPE"
fi
fi
if [ "$TYPE" == "classic" ]; then
......@@ -260,6 +266,7 @@ do
done
if [ -f "image.img" ]; then
mkdir -p "$IMAGE_PATH/$IMAGE/$VERSION$TYPE/"
echo -n "Copy image to $IMAGE_PATH/$IMAGE/$VERSION$TYPE/$IMAGE-$VERSION${TYPE}_${DATE}.img .......................................... ["
mv image.img "$IMAGE_PATH/$IMAGE/$VERSION$TYPE/$IMAGE-$VERSION${TYPE}_${DATE}.img" || ( echo -e "\e[31mFALSE\e[0m]" && exit 1 ) && echo -e "\e[32mOK\e[0m]"
echo -n "chown $USER_IMAGE:$USER_IMAGE $IMAGE_PATH/$IMAGE/$VERSION$TYPE/$IMAGE-$VERSION${TYPE}_${DATE}.img .............................. ["
......
......@@ -32,8 +32,6 @@ if [ "$IMAGE" == "CentOS" ]; then
echo "Unsupported OS Version"
exit 1
fi
elif [ "$IMAGE" == "Fedora" ]; then
PATH="./fedora/template"
elif [ "$IMAGE" == "Debian" ]; then
PATH="./debian/template"
elif [ "$IMAGE" == "Ubuntu" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment