Commit 0438cab8 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Use full versions for vader builds.

parent 1f408c17
......@@ -10,9 +10,13 @@ mkdir -p "$SCRATCH"
lfs setstripe --stripe-count 8 "$SCRATCH"
trap 'rm -rf "$builddir"' EXIT
module load cmake gcc/10.2.0 openmpi/4.0.5-gcc-10.2.0
ompi_version=$(ompi_info --version | sed -n -e '1s/Open MPI v//;1p')
gcc_version=$(gcc --version | sed -n -e '1s/gcc \(.*\) //;1p')
OMPI_MCA_io=ompio \
${scriptdir}build-cdi-pio-stack.sh \
build=ompi4-gcc10 \
build=openmpi-${ompi_version}-gcc-${gcc_version} \
multi_installs=: \
prefix="${HOME}/cdi-pio-stack/sw/%b/%k/%v" \
builddir="$builddir" \
CC=mpicc FC=mpifort F77=mpifort CXX=mpic++ \
CFLAGS='-g -O2 -march=znver2 -pipe' FCFLAGS='-g -O2 -march=znver2 -pipe' \
......
#! /bin/bash
set -eux
scriptdir=$(dirname $0)
if [[ x$scriptdir != x ]]; then
scriptdir+=/
......@@ -9,8 +10,16 @@ mkdir -p "$SCRATCH"
lfs setstripe --stripe-count 8 "$SCRATCH"
trap 'rm -rf "$builddir"' EXIT
module load intel-oneapi-compilers intel-oneapi-mpi cmake
INTEL_VERSION=$(ifort -V 2>&1 \
| sed -n -e '/Version/{' -e 's/.*Version \([0-9][0-9.]*\) .*/\1/;p;}')
I_MPI_VERSION=$(mpicc -dM -E - <<EOF 2>/dev/null | sed -n -e '/I_MPI_VERSION/{' -e 's/^#define I_MPI_VERSION "\(.*\)"/\1/;p;}'
#include <mpi.h>
EOF
)
${scriptdir}build-cdi-pio-stack.sh \
build=impi-icc \
build=impi-${I_MPI_VERSION}-icc-${INTEL_VERSION} \
multi_installs=: \
prefix="${HOME}/cdi-pio-stack/sw/%b/%k/%v" \
builddir="$builddir" \
CC=mpiicc FC=mpiifort F77=mpiifort CXX=mpiicpc \
CFLAGS='-O2 -g -march=core-avx2 -mtune=core-avx2' \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment