Skip to content
Snippets Groups Projects
Commit 29b9fa7b authored by Siddhant Tibrewal's avatar Siddhant Tibrewal
Browse files

replicated levante based script for lumi

parent dea131bd
No related branches found
No related tags found
1 merge request!46Build process for multiple compilers across different machines
#!/bin/bash
while [ $# -gt 0 ]; do
case "$1" in
--yaco-root)
YACO_ROOT=$2
ABSOLUTE_YACO_ROOT=$(readlink -f "${YACO_ROOT}")
shift
break
;;
*)
echo "Error: unknown argument '$1'. Call this script with --yaco-root and path to your yaco-root"
exit 1
;;
esac
done
echo "Absolute path provided as the yaco root: $ABSOLUTE_YACO_ROOT"
# take the right compiler
COMPILER="cce-16.0.1.1"
module purge
module load PrgEnv-cray cce/16.0.1.1 craype-x86-milan cray-mpich cray-hdf5 cray-netcdf cray-libsci !libfabric
THREADS=8
BUILD_PATH=$ABSOLUTE_YACO_ROOT/build/$COMPILER
INSTALL_PATH=$BUILD_PATH/install
# build dependencies for yaco
echo "=== Building yaco dependencies ==="
$ABSOLUTE_YACO_ROOT/scripts/setup/build-dependencies.sh -j $THREADS --dependency all --build_dir_name $COMPILER --prefix_path $INSTALL_PATH
# build yaco
echo "=== Building yaco ==="
cd "$BUILD_PATH"
cmake $ABSOLUTE_YACO_ROOT -DCMAKE_PREFIX_PATH=$INSTALL_PATH -DENABLE_NETCDF=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release
cmake --build . -j $THREADS
cmake --install . --prefix=$INSTALL_PATH
\ No newline at end of file
#!/bin/bash
while [ $# -gt 0 ]; do
case "$1" in
--yaco-root)
YACO_ROOT=$2
ABSOLUTE_YACO_ROOT=$(readlink -f "${YACO_ROOT}")
shift
break
;;
*)
echo "Error: unknown argument '$1'. Call this script with --yaco-root and path to your yaco-root"
exit 1
;;
esac
done
echo "Absolute path provided as the yaco root: $ABSOLUTE_YACO_ROOT"
# take the right compiler
COMPILER="cce-17.0.1"
module purge
module load PrgEnv-cray cce/17.0.1 craype-x86-milan cray-mpich/8.1.29 cray-hdf5 cray-netcdf cray-libsci libfabric
THREADS=8
BUILD_PATH=$ABSOLUTE_YACO_ROOT/build/$COMPILER
INSTALL_PATH=$BUILD_PATH/install
# build dependencies for yaco
echo "=== Building yaco dependencies ==="
$ABSOLUTE_YACO_ROOT/scripts/setup/build-dependencies.sh -j $THREADS --dependency all --build_dir_name $COMPILER --prefix_path $INSTALL_PATH
# build yaco
echo "=== Building yaco ==="
cd "$BUILD_PATH"
cmake $ABSOLUTE_YACO_ROOT -DCMAKE_PREFIX_PATH=$INSTALL_PATH -DENABLE_NETCDF=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release
cmake --build . -j $THREADS
cmake --install . --prefix=$INSTALL_PATH
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment