Singularity_python 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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: nvidia/cuda:11.2.2-devel-ubuntu20.04
  5. %environment
  6. export XDG_RUNTIME_DIR=
  7. export PATH="$PATH:/usr/local/bin:/usr/bin"
  8. export PATH=/opt/nvidia/nsight-systems/2021.3.1/bin:/opt/nvidia/nsight-compute/2021.2.2:/bin:/usr/local/cuda/bin$PATH
  9. export LD_LIBRARY_PATH="/usr/include/python3.8:/usr/local/lib:/usr/local/lib/python3.8/dist-packages:/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
  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 python3-dev \
  15. m4 vim-nox emacs-nox nano zip \
  16. python3-pip python3-setuptools nginx zip make build-essential libtbb-dev
  17. rm -rf /var/lib/apt/cache/*
  18. pip3 install --no-cache-dir -U install setuptools pip
  19. apt-get -y update
  20. apt-get -y install git nvidia-modprobe
  21. pip3 install 'chardet>=3.0.2,<3.1.0' 'idna>=2.5,<2.8' 'urllib3>=1.21.1,<1.24' 'certifi>=2017.4.17'
  22. pip3 install jupyterlab
  23. pip3 install ipywidgets
  24. pip3 install gdown
  25. pip3 install --upgrade numpy==1.19.5
  26. pip3 install --no-cache-dir "cupy-cuda112==9.0.0" \
  27. numba==0.53.1 scipy
  28. #apt-get install --no-install-recommends -y build-essential
  29. python3 /labs/nways_MD/English/Python/source_code/dataset.py
  30. touch /labs/nways_MD/English/Python/jupyter_notebook/cupy/RDF.dat
  31. touch /labs/nways_MD/English/Python/jupyter_notebook/cupy/Pair_entropy.dat
  32. # NVIDIA nsight-systems-2021.3.1 ,nsight-compute-2021.2.2
  33. apt-get update -y
  34. DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-transport-https ca-certificates gnupg wget
  35. apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys F60F4B3D7FA2AF80
  36. echo "deb https://developer.download.nvidia.com/devtools/repos/ubuntu2004/amd64/ /" >> /etc/apt/sources.list.d/nsight.list
  37. apt-get update -y
  38. DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends nsight-systems-2021.3.1 nsight-compute-2021.2.2
  39. apt-get install --no-install-recommends -y build-essential
  40. pip3 install --no-cache-dir MDAnalysis
  41. chmod -R 777 /labs/nways_MD/English/Python/jupyter_notebook/cupy/RDF.dat
  42. chmod -R 777 /labs/nways_MD/English/Python/jupyter_notebook/cupy/Pair_entropy.dat
  43. cd /
  44. rm -rf ${build_tmp}
  45. %files
  46. nways_labs/ /labs
  47. %runscript
  48. "$@"
  49. %labels
  50. AUTHOR Tosin