Skip to content
Snippets Groups Projects
Select Git revision
  • 8b9ec6f9ec46c6e046088d7eab4e7f1de716e308
  • master default protected
2 results

Singularity.ubuntu-18.04-cuda-10.2-openmpi-3.1.6

Blame
  • Singularity.ubuntu-18.04-cuda-10.2-openmpi-3.1.6 4.57 KiB
    Bootstrap: shub
    From: mkandes/naked-singularity:ubuntu-18.04-cuda-10.2
    
    %labels
    
        APPLICATION_NAME ubuntu + cuda + openmpi
        APPLICATION_VERSION 18.04 + 10.2 + 3.1.6
        APPLICATION_URL https://www.open-mpi.org
    
        AUTHOR_NAME Marty Kandes
        AUTHOR_EMAIL mkandes@sdsc.edu
    
        LAST_UPDATED 20210424
    
    %setup
    
    %environment
    
        # Set Mellanox OFED version, operating system, and hardware platform
        export MLNX_ROOT_URL='http://www.mellanox.com/downloads/ofed'
        export MLNX_OFED_VERSION='4.7-3.2.9.0'
        export MLNX_OS_VERSION='ubuntu18.04'
        export MLNX_PLATFORM='x86_64'
    
        # Set OpenMPI major, minor, and revision numbers, root and
        # installation directories
        export OMPI_ROOT_URL='https://download.open-mpi.org/release/open-mpi'
        export OMPI_MAJOR='3'
        export OMPI_MINOR='1'
        export OMPI_REVISION='6'
        export OMPI_VERSION="${OMPI_MAJOR}.${OMPI_MINOR}.${OMPI_REVISION}"
        export OMPI_ROOT_DIR='/opt/openmpi'
        export OMPI_INSTALL_DIR="${OMPI_ROOT_DIR}/${OMPI_VERSION}"
    
        # Set paths to OpenMPI binaries and libraries
        export PATH="${OMPI_INSTALL_DIR}/bin:${PATH}"
        export LD_LIBRARY_PATH="${OMPI_INSTALL_DIR}/lib:${LD_LIBRARY_PATH}"
    
    %post -c /bin/bash
    
        # Set operating system mirror URL
        export MIRRORURL='http://us.archive.ubuntu.com/ubuntu'
    
        # Set operating system version
        export OSVERSION='bionic'
    
        # Set system locale
        export LC_ALL='C'
    
        # Set debian frontend interface
        export DEBIAN_FRONTEND='noninteractive'
    
        # Upgrade all software packages to their latest versions
        apt-get -y update && apt-get -y upgrade
    
        # Set CUDA version
        export CUDA_MAJOR='10'
        export CUDA_MINOR='2'
        export CUDA_VERSION="${CUDA_MAJOR}.${CUDA_MINOR}"
    
        # Set paths to CUDA binaries and libraries
        export CUDA_HOME="/usr/local/cuda-${CUDA_VERSION}"
        export PATH="${CUDA_HOME}/bin${PATH:+:${PATH}}"
        export LD_LIBRARY_PATH="${CUDA_HOME}/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
    
        # Install all dependencies and/or prerequisites for Mellanox OFED
        apt-get -y install bison
        apt-get -y install chrpath
        apt-get -y install debhelper
        apt-get -y install dpatch