UNM-CARC/singularity-test:ubuntu-ompi

$ singularity pull shub://UNM-CARC/singularity-test:ubuntu-ompi

Singularity Recipe

# 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 

    # openmpi
    echo "Get and Build openmpi"
    mkdir -p /usr/local/src
    cd /usr/local/src
    wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.bz2
    tar -xjf openmpi-2.1.1.tar.bz2
    cd openmpi-2.1.1
    ./configure --prefix=/usr/local --with-hwloc
    make -j4
    make install

%environment    
    # path to mlx IB libraries and openmpi in Ubuntu
LD_LIBRARY_PATH=/usr/local/lib:/usr/lib/libibverbs:$LD_LIBRARY_PATH
PATH=/usr/local/bin:$PATH

Collection


View on Datalad

Metrics

key value
id /containers/UNM-CARC-singularity-test-ubuntu-ompi
collection name UNM-CARC/singularity-test
branch master
tag ubuntu-ompi
commit 46b2d0f9ce50e2ad3a7e1b639284e5f93507edce
version (container hash) c7a6066e91001ef49d77f0b85933bf5f
build date 2017-11-28T19:11:34.737Z
size (MB) 1325
size (bytes) 391008287
SIF Download URL (please use pull with shub://)
Datalad URL View on Datalad
Singularity Recipe Singularity Recipe on Datalad
We cannot guarantee that all containers will still exist on GitHub.