Skip to content
Snippets Groups Projects
Commit 9cdcaae6 authored by Lukas Werner's avatar Lukas Werner
Browse files

Update example.gitlab-ci.yml

parent 5704cf51
Branches
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
## ##
###############################################################################
variables:
AUTH_USER: yw25ynew
AUTH_USER: hpc_username
stages:
- build
......@@ -18,12 +18,15 @@ stages:
.build_template:
script:
- module load cmake/3.11.1
- module load openmpi/3.1.5-gcc
- module load gcc/9.1.0
- export NUM_CORES=$(nproc --all)
- export MAX_BUILD_CORES=$(( $(awk '( $1 == "MemTotal:" ) { print $2 }' /proc/meminfo) / ( 4 * 1024 * 1024 ) ))
- "[[ $MAX_BUILD_CORES -lt $NUM_CORES ]] && export NUM_BUILD_CORES=$MAX_BUILD_CORES || export NUM_BUILD_CORES=$NUM_CORES"
- $CXX --version
- cmake --version
- ccache --version
- echo No ccache --version
- mpirun --version
- python3 --version
- export CCACHE_BASEDIR=$CI_PROJECT_DIR
......@@ -50,8 +53,8 @@ stages:
-DWALBERLA_BUILD_WITH_CODEGEN=$WALBERLA_BUILD_WITH_CODEGEN
-DWALBERLA_STL_BOUNDS_CHECKS=$WALBERLA_STL_BOUNDS_CHECKS
- cmake . -LA
- cd src/core
- make -j $NUM_BUILD_CORES -l $NUM_CORES
- cd tests/core
- make -j $NUM_BUILD_CORES -l $NUM_CORES ReduceTest
variables:
CTEST_EXCLUDE_LABELS: "longrun"
WALBERLA_BUILD_WITH_MPI: "ON"
......@@ -65,7 +68,7 @@ stages:
WALBERLA_BUILD_WITH_PARMETIS: "ON"
WALBERLA_ENABLE_GUI: "OFF"
tags:
- i10staff22
- testfront
###############################################################################
......@@ -77,23 +80,39 @@ stages:
gcc_9_mpionly:
extends: .build_template
stage: build
before_script:
- export CXX=g++
- export CC=gcc
variables:
CTEST_EXCLUDE_LABELS: "longrun"
WALBERLA_BUILD_WITH_MPI: "ON"
WALBERLA_BUILD_WITH_OPENMP: "OFF"
WALBERLA_BUILD_WITH_METIS: "OFF"
WALBERLA_BUILD_WITH_PARMETIS: "OFF"
WALBERLA_BUILD_WITH_PARMETIS: "OFF"
tags:
- i10staff22
- testfront
artifacts:
paths:
- build
test:
stage: test
script:
- export NUM_CORES=$(nproc --all)
- cd $CI_PROJECT_DIR/build/tests/core
- ctest -LE $CTEST_EXCLUDE_LABELS -C $CMAKE_BUILD_TYPE --output-on-failure -j $NUM_CORES -T Test
variables:
SUBMIT_TO_SLURM: 1
SLURM_PARTITION: "work"
SLURM_TIMELIMIT: 20
SLURM_CONSTRAINT: hwperf
SLURM_NODELIST: broadep2
SLURM_NODES: 1
CTEST_EXCLUDE_LABELS: "longrun"
CMAKE_BUILD_TYPE: "Release"
script:
- module load cmake/3.11.1
- module load openmpi/3.1.5-gcc
- module load gcc/9.1.0
- module load slurm
- export NUM_CORES=$(nproc --all)
- cd $CI_PROJECT_DIR/build/tests/core
- ctest -C $CMAKE_BUILD_TYPE --output-on-failure -j $NUM_CORES -T Test -R ReduceTest
tags:
- i10staff22
- testfront
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment