Skip to content

Commit

Permalink
Docker: Set unlimited stack size only for Intel compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed May 12, 2022
1 parent 8879fa2 commit 5e7252e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tools/docker/scripts/test_regtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ VERSION=$2

ulimit -c 0 # Disable core dumps as they can take a very long time to write.

# Extend stack size - needed when using Intel compilers.
ulimit -s unlimited
export OMP_STACKSIZE=64m

# Check available shared memory - needed for MPI inter-process communication.
SHM_AVAIL=$(df --output=avail -m /dev/shm | tail -1)
if ((SHM_AVAIL < 1024)); then
Expand Down Expand Up @@ -64,6 +60,12 @@ fi
# Improve code coverage on COSMA.
export COSMA_DIM_THRESHOLD=0

# Extend stack size only for Intel compiler - otherwise it breaks tests on i386.
if "./exe/${ARCH}/cp2k.${VERSION}" --version | grep -q "compiler: Intel"; then
ulimit -s unlimited
export OMP_STACKSIZE=64m
fi

# Run regtests.
echo -e "\n========== Running Regtests =========="
make ARCH="${ARCH}" VERSION="${VERSION}" TESTOPTS="${TESTOPTS}" test
Expand Down

0 comments on commit 5e7252e

Please sign in to comment.