-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSingularity
41 lines (31 loc) · 1.31 KB
/
Singularity
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Bootstrap: docker
From: nvcr.io/nvidia/pytorch:22.04-py3
%runscript
"$@"
%post
apt-get -y update
pip3 install jupyterlab
pip3 install ipywidgets
pip3 install torch_tb_profiler
# Read https://forums.developer.nvidia.com/t/notice-cuda-linux-repository-key-rotation/212772
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
gnupg \
wget && \
rm -rf /var/lib/apt/lists/*
wget -qO - https://developer.download.nvidia.com/devtools/repos/ubuntu2004/amd64/nvidia.pub | apt-key add - && \
echo "deb https://developer.download.nvidia.com/devtools/repos/ubuntu2004/amd64/ /" >> /etc/apt/sources.list.d/nsight.list && \
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
nsight-systems-2022.1.1 && \
rm -rf /var/lib/apt/lists/*
%files
#../English/* /workspace/
%environment
export XDG_RUNTIME_DIR=
export LD_LIBRARY_PATH="/usr/local/lib:/usr/local/lib/python3.8/dist-packages:/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
export PATH="/opt/nvidia/nsight-systems/2022.2.1/bin:/usr/local/bin:/bin:/usr/local/cuda/bin:/usr/bin${PATH:+:${PATH}}"
%labels
AUTHOR Tosin