Singularity 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright (c) 2021 NVIDIA Corporation. All rights reserved.
  2. Bootstrap: docker
  3. #FROM: nvcr.io/nvidia/nvhpc:20.11-devel-cuda_multi-ubuntu20.04
  4. FROM: nvcr.io/nvidia/nvhpc:21.3-devel-cuda_multi-ubuntu20.04
  5. %environment
  6. export XDG_RUNTIME_DIR=
  7. export PATH="$PATH:/usr/local/bin:/opt/anaconda3/bin:/usr/bin"
  8. # export PATH=/opt/nvidia/nsight-systems/2020.5.1/bin:/opt/nvidia/nsight-compute/2020.2.1:$PATH
  9. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib:/opt/nvidia/hpc_sdk/Linux_x86_64/21.3/cuda/11.2/lib64/"
  10. %post
  11. build_tmp=$(mktemp -d) && cd ${build_tmp}
  12. apt-get -y update
  13. apt-get -y dist-upgrade
  14. DEBIAN_FRONTEND=noninteractive apt-get -yq install --no-install-recommends \
  15. m4 vim-nox emacs-nox nano zip\
  16. python3-pip python3-setuptools git-core inotify-tools \
  17. curl git-lfs \
  18. build-essential libtbb-dev
  19. rm -rf /var/lib/apt/cache/*
  20. pip3 install --upgrade pip
  21. pip3 install gdown
  22. apt-get update -y
  23. apt-get -y install git nvidia-modprobe
  24. pip3 install jupyterlab
  25. pip3 install ipywidgets
  26. apt-get install --no-install-recommends -y build-essential
  27. python3 /labs/nways_MD/English/C/source_code/dataset.py
  28. python3 /labs/nways_MD/English/Fortran/source_code/dataset.py
  29. # NVIDIA nsight-systems-2020.5.1 ,nsight-compute-2
  30. # apt-get update -y
  31. # DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-transport-https ca-certificates gnupg wget
  32. # apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys F60F4B3D7FA2AF80
  33. # echo "deb https://developer.download.nvidia.com/devtools/repos/ubuntu2004/amd64/ /" >> /etc/apt/sources.list.d/nsight.list
  34. apt-get update -y
  35. # DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends nsight-systems-2020.5.1 nsight-compute-2020.2.1
  36. apt-get install --no-install-recommends -y build-essential
  37. wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
  38. bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/anaconda3
  39. rm Miniconda3-latest-Linux-x86_64.sh
  40. cd /
  41. rm -rf ${build_tmp}
  42. %files
  43. nways_labs/ /labs
  44. %runscript
  45. "$@"
  46. %labels
  47. AUTHOR mozhgank