Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Singularity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IMGW
Singularity
Commits
09d37947
Commit
09d37947
authored
4 years ago
by
Marty Kandes
Browse files
Options
Downloads
Patches
Plain Diff
Update Singularity.ubuntu-18.04-openmpi-3.1.6
parent
48c33017
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
definition-files/ubuntu/Singularity.ubuntu-18.04-openmpi-3.1.6
+30
-28
30 additions, 28 deletions
...ition-files/ubuntu/Singularity.ubuntu-18.04-openmpi-3.1.6
with
30 additions
and
28 deletions
definition-files/ubuntu/Singularity.ubuntu-18.04-openmpi-3.1.6
+
30
−
28
View file @
09d37947
...
@@ -10,30 +10,31 @@ From: mkandes/naked-singularity:ubuntu-18.04
...
@@ -10,30 +10,31 @@ From: mkandes/naked-singularity:ubuntu-18.04
AUTHOR_NAME Marty Kandes
AUTHOR_NAME Marty Kandes
AUTHOR_EMAIL mkandes@sdsc.edu
AUTHOR_EMAIL mkandes@sdsc.edu
LAST_UPDATED 202
01226
LAST_UPDATED 202
10409
%setup
%setup
%environment
%environment
# Set Mellanox OFED version
number
, operating system, and hardware
# Set Mellanox OFED version, operating system, and hardware
platform
# platform
export MLNX_ROOT_URL='http://www.mellanox.com/downloads/ofed'
export MLNX_OFED_VERSION='4.7-3.2.9.0'
export MLNX_OFED_VERSION='4.7-3.2.9.0'
export MLNX_OS_VERSION='ubuntu18.04'
export MLNX_OS_VERSION='ubuntu18.04'
export MLNX_PLATFORM='x86_64'
export MLNX_PLATFORM='x86_64'
# Set OpenMPI major, minor, and revision
version
s, root and
# Set OpenMPI major, minor, and revision
number
s, root and
# installation directories
# installation directories
export OPENMPI_MAJOR_VERSION=3
export OMPI_ROOT_URL='https://download.open-mpi.org/release/open-mpi'
export OPENMPI_MINOR_VERSION=1
export OMPI_MAJOR='3'
export OPENMPI_REVISION_VERSION=6
export OMPI_MINOR='1'
export OPENMPI_VERSION="${OPENMPI_MAJOR_VERSION}.${OPENMPI_MINOR_VERSION}.${OPENMPI_REVISION_VERSION}"
export OMPI_REVISION='6'
export OPENMPI_ROOT_DIR='/opt/openmpi'
export OMPI_VERSION="${OMPI_MAJOR}.${OMPI_MINOR}.${OMPI_REVISION}"
export OPENMPI_INSTALL_DIR="${OPENMPI_ROOT_DIR}/${OPENMPI_VERSION}"
export OMPI_ROOT_DIR='/opt/openmpi'
export OMPI_INSTALL_DIR="${OMPI_ROOT_DIR}/${OMPI_VERSION}"
# Set paths to OpenMPI binaries and libraries
# Set paths to OpenMPI binaries and libraries
export PATH="${O
PEN
MPI_INSTALL_DIR}/bin:${PATH}"
export PATH="${OMPI_INSTALL_DIR}/bin:${PATH}"
export LD_LIBRARY_PATH="${O
PEN
MPI_INSTALL_DIR}/lib:${LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH="${OMPI_INSTALL_DIR}/lib:${LD_LIBRARY_PATH}"
%post -c /bin/bash
%post -c /bin/bash
...
@@ -67,8 +68,8 @@ From: mkandes/naked-singularity:ubuntu-18.04
...
@@ -67,8 +68,8 @@ From: mkandes/naked-singularity:ubuntu-18.04
cd /tmp
cd /tmp
# Set Mellanox OFED version
number
, operating system, and hardware
# Set Mellanox OFED version, operating system, and hardware
platform
# platform
export MLNX_ROOT_URL='http://www.mellanox.com/downloads/ofed'
export MLNX_OFED_VERSION='4.7-3.2.9.0'
export MLNX_OFED_VERSION='4.7-3.2.9.0'
export MLNX_OS_VERSION='ubuntu18.04'
export MLNX_OS_VERSION='ubuntu18.04'
export MLNX_PLATFORM='x86_64'
export MLNX_PLATFORM='x86_64'
...
@@ -76,7 +77,7 @@ From: mkandes/naked-singularity:ubuntu-18.04
...
@@ -76,7 +77,7 @@ From: mkandes/naked-singularity:ubuntu-18.04
# Download and install Mellanox OFED drivers and supporting
# Download and install Mellanox OFED drivers and supporting
# libraries for userspace access to Ethernet, RDMA, and Infiniband.
# libraries for userspace access to Ethernet, RDMA, and Infiniband.
# https://docs.mellanox.com/pages/releaseview.action?pageId=15049785
# https://docs.mellanox.com/pages/releaseview.action?pageId=15049785
wget "
http://www.mellanox.com/downloads/ofed
/MLNX_OFED-${MLNX_OFED_VERSION}/MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-${MLNX_OS_VERSION}-${MLNX_PLATFORM}.tgz"
wget "
${MLNX_ROOT_URL}
/MLNX_OFED-${MLNX_OFED_VERSION}/MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-${MLNX_OS_VERSION}-${MLNX_PLATFORM}.tgz"
tar -xf "MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-${MLNX_OS_VERSION}-${MLNX_PLATFORM}.tgz"
tar -xf "MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-${MLNX_OS_VERSION}-${MLNX_PLATFORM}.tgz"
cd "MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-${MLNX_OS_VERSION}-${MLNX_PLATFORM}"
cd "MLNX_OFED_LINUX-${MLNX_OFED_VERSION}-${MLNX_OS_VERSION}-${MLNX_PLATFORM}"
./mlnxofedinstall --user-space-only --without-fw-update --force
./mlnxofedinstall --user-space-only --without-fw-update --force
...
@@ -96,27 +97,28 @@ From: mkandes/naked-singularity:ubuntu-18.04
...
@@ -96,27 +97,28 @@ From: mkandes/naked-singularity:ubuntu-18.04
cd /tmp
cd /tmp
# Set OpenMPI major, minor, and revision
version
s, root and
# Set OpenMPI major, minor, and revision
number
s, root and
# installation directories
# installation directories
export OPENMPI_MAJOR_VERSION=3
export OMPI_ROOT_URL='https://download.open-mpi.org/release/open-mpi'
export OPENMPI_MINOR_VERSION=1
export OMPI_MAJOR='3'
export OPENMPI_REVISION_VERSION=6
export OMPI_MINOR='1'
export OPENMPI_VERSION="${OPENMPI_MAJOR_VERSION}.${OPENMPI_MINOR_VERSION}.${OPENMPI_REVISION_VERSION}"
export OMPI_REVISION='6'
export OPENMPI_ROOT_DIR='/opt/openmpi'
export OMPI_VERSION="${OMPI_MAJOR}.${OMPI_MINOR}.${OMPI_REVISION}"
export OPENMPI_INSTALL_DIR="${OPENMPI_ROOT_DIR}/${OPENMPI_VERSION}"
export OMPI_ROOT_DIR='/opt/openmpi'
export OMPI_INSTALL_DIR="${OMPI_ROOT_DIR}/${OMPI_VERSION}"
# Download, build, and install OpenMPI
# Download, build, and install OpenMPI
wget "
https://download.open-mpi.org/release/open-mpi
/v${O
PEN
MPI_MAJOR
_VERSION
}.${O
PEN
MPI_MINOR
_VERSION
}/openmpi-${O
PEN
MPI_VERSION}.tar.gz"
wget "
${OMPI_ROOT_URL}
/v${OMPI_MAJOR}.${OMPI_MINOR}/openmpi-${OMPI_VERSION}.tar.gz"
tar -xf "openmpi-${O
PEN
MPI_VERSION}.tar.gz"
tar -xf "openmpi-${OMPI_VERSION}.tar.gz"
cd "openmpi-${O
PEN
MPI_VERSION}"
cd "openmpi-${OMPI_VERSION}"
./configure --prefix="${O
PEN
MPI_INSTALL_DIR}"
./configure --prefix="${OMPI_INSTALL_DIR}"
--without-verbs
make all install
make all install
cd /tmp
cd /tmp
# Remove OpenMPI build directory and source tarball
# Remove OpenMPI build directory and source tarball
rm -rf "openmpi-${O
PEN
MPI_VERSION}"
rm -rf "openmpi-${OMPI_VERSION}"
rm "openmpi-${O
PEN
MPI_VERSION}.tar.gz"
rm "openmpi-${OMPI_VERSION}.tar.gz"
# Cleanup
# Cleanup
apt-get -y autoremove --purge
apt-get -y autoremove --purge
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment