mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-27 05:35:28 -04:00
30 lines
503 B
Bash
Executable file
30 lines
503 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
# author: Ole Schuett
|
|
|
|
if (($# != 1)); then
|
|
echo "Usage: install_performance.sh <ARCH>"
|
|
exit 1
|
|
fi
|
|
|
|
ARCH=$1
|
|
|
|
# setup arch files
|
|
cd /workspace/cp2k/arch
|
|
ln -vs /opt/cp2k-toolchain/install/arch/local* .
|
|
|
|
# shellcheck disable=SC1091
|
|
source /opt/cp2k-toolchain/install/setup
|
|
|
|
# pre-build cp2k
|
|
cd /workspace/cp2k
|
|
echo -n "Warming cache by trying to compile cp2k... "
|
|
if make -j ARCH="${ARCH}" VERSION="psmp" &> /dev/null; then
|
|
echo 'done.'
|
|
else
|
|
echo 'failed.'
|
|
fi
|
|
|
|
rm -rf lib exe
|
|
|
|
#EOF
|