-
Notifications
You must be signed in to change notification settings - Fork 1
/
Singularity.ubuntu-mpich
67 lines (57 loc) · 2.26 KB
/
Singularity.ubuntu-mpich
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
# MPI Ubuntu Package for running on CARC Wheeler - derived from initial UUtah CHPC
# package specification at:
# https://github.com/CHPC-UofU/Singularity-ubuntu-mpi/blob/master/Singularity
Bootstrap: docker
From: ubuntu:latest
%post
# Wheeler mount points
mkdir -p /wheeler/scratch
mkdir -p /nfs/scratch
# Install the necessary packages (from repo)
apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
build-essential \
curl \
git \
libopenblas-dev \
libcurl4-openssl-dev \
libfreetype6-dev \
libpng-dev \
libzmq3-dev \
python-pip \
pkg-config \
python-dev \
python-setuptools \
rsync \
software-properties-common \
unzip \
vim \
zip \
zlib1g-dev
apt-get clean
# Set up some required environment defaults
#MC issue with locale (LC_ALL, LANGUAGE), to get it right:
apt-get install -y language-pack-en
locale-gen "en_US.UTF-8"
dpkg-reconfigure locales
export LANGUAGE="en_US.UTF-8"
echo 'LANGUAGE="en_US.UTF-8"' >> /etc/default/locale
echo 'LC_ALL="en_US.UTF-8"' >> /etc/default/locale
# Update to the latest pip (newer than repo)
pip install --no-cache-dir --upgrade pip
# Install other commonly-needed packages
pip install --no-cache-dir --upgrade \
future \
matplotlib \
scipy
# IB stuff, based on https://community.mellanox.com/docs/DOC-2431
apt-get install -y dkms infiniband-diags libibverbs* ibacm librdmacm* libmlx4* libmlx5* mstflint libibcm.* libibmad.* libibumad* opensm srptools libmlx4-dev librdmacm-dev rdmacm-utils ibverbs-utils perftest vlan ibutils
apt-get install -y libtool autoconf automake build-essential ibutils ibverbs-utils rdmacm-utils infiniband-diags perftest librdmacm-dev libibverbs-dev libmlx4-1 numactl libnuma-dev autoconf automake gcc g++ git libtool pkg-config
apt-get install -y libnl-3-200 libnl-route-3-200 libnl-route-3-dev libnl-utils
# git, wget, ncurses
apt-get install -y git wget libncurses5-dev
# mpich
apt-get install -y mpich libmpich-dev
%environment
# path to mlx IB libraries and openmpi in Ubuntu
LD_LIBRARY_PATH=/usr/lib/libibverbs:$LD_LIBRARY_PATH