Commit a3881e84 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Align debug script with its ancestor.

parent 8ba42cde
#! /bin/bash
set -eux
scriptdir=$(dirname "$0")
if [[ x$scriptdir != x ]]; then
scriptdir+=/
fi
builddir=$(mktemp -d "/dev/shm/cdi-pio-build-$(id -un)-XXXXXXX")
SCRATCH="/mnt/lustre01/scratch/${USER:0:1}/${USER}/cdi-pio-test-files"
mkdir -p "$SCRATCH"
lfs setstripe --stripe-count 8 "$SCRATCH"
trap 'rm -rf "$builddir"' EXIT
module load intel-oneapi-compilers intel-oneapi-mpi cmake
build=impi-icc \
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-${I_MPI_VERSION}-icc-${INTEL_VERSION}" \
multi_installs=: \
prefix="${HOME}/cdi-pio-stack-defective/sw/%b/%k/%v" \
builddir="$builddir" \
basedir="${HOME}/cdi-pio-stack-defective" \
archivedir="${HOME}/cdi-pio-stack/archive" \
srcdir="${HOME}/cdi-pio-stack/src" \
SCRATCH="$SCRATCH" \
CC=mpiicc FC=mpiifort F77=mpiifort CXX=mpiicpc \
CFLAGS='-O0 -g' FCFLAGS='-O0 -g' \
${scriptdir}build-cdi-pio-stack.sh
CFLAGS='-O0 -g' FCFLAGS='-O0 -g'
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