-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSingularity.cuda
83 lines (65 loc) · 2.98 KB
/
Singularity.cuda
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
78
79
80
81
Bootstrap: docker
From: nvidia/cuda:9.0-cudnn7-devel
%post
# Update list of available packages, then upgrade them
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
# Workaround for https://github.com/keras-team/keras/issues/9567
apt-get install -y --allow-downgrades --no-install-recommends \
libcudnn7=7.0.5.15-1+cuda9.0 libcudnn7-dev=7.0.5.15-1+cuda9.0
# Utility and support packages
apt-get install -y screen terminator tmux vim wget
apt-get install -y aptitude build-essential cmake g++ gfortran git \
pkg-config python-pip python-dev software-properties-common
# More utilities
apt-get install -y graphviz libatlas-dev libfreetype6 libfreetype6-dev \
libgraphviz-dev liblapack-dev swig libxft-dev libxml2-dev \
libxslt-dev zlib1g-dev
# Python modules from system package manager
apt-get install -y python-numpy python-scipy python-nose python-h5py \
python-skimage python-matplotlib python-pandas python-sklearn \
python-sympy python-virtualenv
# More dependencies/useful software from system package manager
apt-get install -v libopenblas-dev libfreetype7-dev libpng12-dev \
libglib2.0-0 libsm6 libxext6 libxrender1
# Caffe dependencies
apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev \
libhdf5-serial-dev protobuf-compiler
apt-get install --no-install-recommends -y libboost-all-dev
apt-get install -y libgflags-dev libgoogle-glog-dev liblmdb-dev
# Theano dependencies not already installed
apt-get install -y python-pygments python-sphinx
# Dense Flow dependencies
apt-get install -y libzip-dev
# OpenCV build dependencies not already installed
apt-get install -y checkinstall yasm libjpeg-dev libjpeg8-dev \
libjasper-dev libavcodec-dev libavformat-dev libswscale-dev \
libdc1394-22-dev libgstreamer0.10-dev \
libgstreamer-plugins-base0.10-dev libv4l-dev python-dev python-numpy \
libtbb-dev libqt4-dev libgtk2.0-dev libfaac-dev libmp3lame-dev \
libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev \
libxvidcore-dev x264 v4l-utils libgtk-3-dev
# PIL (actually Pillow)
pip install --no-cache-dir Pillow
# Jupyter and jupyterlab
pip install --no-cache-dir jupyter
pip install --no-cache-dir jupyterlab
# Various useful Python packages
pip install --no-cache-dir pygraphviz
pip install --no-cache-dir networkx
pip install --no-cache-dir numexpr
pip install --no-cache-dir pymc
pip install --no-cache-dir patsy
pip install --no-cache-dir Cython
pip install --no-cache-dir statsmodels
pip install --no-cache-dir restview
pip install --no-cache-dir tinkerer
pip install --no-cache-dir Pweave
pip install --no-cache-dir numba
# Gnuplot
apt-get install -y gnuplot-x11
# Clean up
apt-get -y autoremove
rm -rvf /var/lib/apt/lists/*
%environment
export LC_ALL=C