-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BM as the prefix of openmpi and lapack images
- Loading branch information
Showing
12 changed files
with
107 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
# Compile Lapack | ||
FROM base-image AS lapack-builder | ||
|
||
WORKDIR /lapack-build | ||
ARG LAPACK_VERSION | ||
|
||
RUN wget -c -O lapack.tar.gz https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v${LAPACK_VERSION}.tar.gz && \ | ||
mkdir -p lapack && \ | ||
tar xf lapack.tar.gz -C lapack --strip-components=1 && \ | ||
cd lapack && \ | ||
cp INSTALL/make.inc.gfortran make.inc && \ | ||
make lapacklib blaslib && \ | ||
mkdir -p /usr/local/lapack/lib && \ | ||
cp *.a /usr/local/lapack/lib && \ | ||
rm -rf /lapack-build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
# Compile openMPI | ||
FROM base-image AS openmpi-builder | ||
|
||
WORKDIR /openmpi-build | ||
ARG OPENMPI_VERSION | ||
|
||
# TODO: v4.1 -< OPENMPI_MAJOR_MINOR_VERSION | ||
RUN wget -c -O openmpi.tar.gz https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-${OPENMPI_VERSION}.tar.gz && \ | ||
mkdir -p openmpi && \ | ||
tar xf openmpi.tar.gz -C openmpi --strip-components=1 && \ | ||
cd openmpi && \ | ||
./configure --prefix=/opt/openmpi --enable-static --disable-shared && \ | ||
make -j$(nproc) && \ | ||
make install && \ | ||
rm -rf /openmpi-build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM base-image | ||
|
||
# Build toolchains | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
wget \ | ||
curl \ | ||
gcc \ | ||
g++ \ | ||
make \ | ||
libtool \ | ||
autoconf \ | ||
automake \ | ||
gfortran \ | ||
bzip2 \ | ||
tar \ | ||
git && \ | ||
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
"variable": { | ||
"OPENMPI_VERSION": { | ||
"default": "4.1.6" | ||
}, | ||
"LAPACK_VERSION": { | ||
"default": "3.10.1" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.