-
Notifications
You must be signed in to change notification settings - Fork 4
/
Singularity.v3.9-torch1.10.2-dj0.12.7.def
77 lines (65 loc) · 1.62 KB
/
Singularity.v3.9-torch1.10.2-dj0.12.7.def
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
BootStrap: docker
From: ubuntu:21.10
%labels
MAINTAINER Christoph Blessing <[email protected]>
%post
apt update && apt install -y software-properties-common
add-apt-repository universe
apt update && apt install -y \
build-essential \
git \
wget \
vim \
curl \
zip \
zlib1g-dev \
unzip \
pkg-config \
libblas-dev \
liblapack-dev \
python3-tk \
python3-wheel \
graphviz \
libhdf5-dev \
python3.9 \
python3.9-dev \
python3.9-distutils \
python3-testresources \
swig
apt-get clean
ln -s /usr/bin/python3.9 /usr/local/bin/python
ln -s /usr/bin/python3.9 /usr/local/bin/python3
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.9 get-pip.py
rm get-pip.py
python3.9 -m pip --no-cache-dir install --upgrade pip
python3.9 -m pip --no-cache-dir install \
blackcellmagic\
pytest \
pytest-cov \
numpy \
matplotlib \
scipy \
pandas \
jupyter \
scikit-learn \
scikit-image \
seaborn \
graphviz \
gpustat \
h5py \
gitpython \
Pillow==8.0.1 \
jupyterlab \
datajoint==0.12.7
python3.9 -m pip --no-cache-dir install \
torch==1.10.2+cu113 \
torchvision==0.11.3+cu113 \
torchaudio==0.10.2+cu113 \
-f https://download.pytorch.org/whl/cu113/torch_stable.html
%environment
export SHELL=/bin/sh
%runscript
exec /bin/sh -c "$@"
%startscript
jupyter lab