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
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
## ## ## ##
############################################################################### ###############################################################################
variables: variables:
AUTH_USER: yw25ynew AUTH_USER: hpc_username
stages: stages:
- build - build
...@@ -18,12 +18,15 @@ stages: ...@@ -18,12 +18,15 @@ stages:
.build_template: .build_template:
script: 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 NUM_CORES=$(nproc --all)
- export MAX_BUILD_CORES=$(( $(awk '( $1 == "MemTotal:" ) { print $2 }' /proc/meminfo) / ( 4 * 1024 * 1024 ) )) - 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" - "[[ $MAX_BUILD_CORES -lt $NUM_CORES ]] && export NUM_BUILD_CORES=$MAX_BUILD_CORES || export NUM_BUILD_CORES=$NUM_CORES"
- $CXX --version - $CXX --version
- cmake --version - cmake --version
- ccache --version - echo No ccache --version
- mpirun --version - mpirun --version
- python3 --version - python3 --version
- export CCACHE_BASEDIR=$CI_PROJECT_DIR - export CCACHE_BASEDIR=$CI_PROJECT_DIR
...@@ -50,8 +53,8 @@ stages: ...@@ -50,8 +53,8 @@ stages:
-DWALBERLA_BUILD_WITH_CODEGEN=$WALBERLA_BUILD_WITH_CODEGEN -DWALBERLA_BUILD_WITH_CODEGEN=$WALBERLA_BUILD_WITH_CODEGEN
-DWALBERLA_STL_BOUNDS_CHECKS=$WALBERLA_STL_BOUNDS_CHECKS -DWALBERLA_STL_BOUNDS_CHECKS=$WALBERLA_STL_BOUNDS_CHECKS
- cmake . -LA - cmake . -LA
- cd src/core - cd tests/core
- make -j $NUM_BUILD_CORES -l $NUM_CORES - make -j $NUM_BUILD_CORES -l $NUM_CORES ReduceTest
variables: variables:
CTEST_EXCLUDE_LABELS: "longrun" CTEST_EXCLUDE_LABELS: "longrun"
WALBERLA_BUILD_WITH_MPI: "ON" WALBERLA_BUILD_WITH_MPI: "ON"
...@@ -65,7 +68,7 @@ stages: ...@@ -65,7 +68,7 @@ stages:
WALBERLA_BUILD_WITH_PARMETIS: "ON" WALBERLA_BUILD_WITH_PARMETIS: "ON"
WALBERLA_ENABLE_GUI: "OFF" WALBERLA_ENABLE_GUI: "OFF"
tags: tags:
- i10staff22 - testfront
############################################################################### ###############################################################################
...@@ -77,23 +80,39 @@ stages: ...@@ -77,23 +80,39 @@ stages:
gcc_9_mpionly: gcc_9_mpionly:
extends: .build_template extends: .build_template
stage: build stage: build
before_script:
- export CXX=g++
- export CC=gcc
variables: variables:
CTEST_EXCLUDE_LABELS: "longrun" CTEST_EXCLUDE_LABELS: "longrun"
WALBERLA_BUILD_WITH_MPI: "ON" WALBERLA_BUILD_WITH_MPI: "ON"
WALBERLA_BUILD_WITH_OPENMP: "OFF" WALBERLA_BUILD_WITH_OPENMP: "OFF"
WALBERLA_BUILD_WITH_METIS: "OFF" WALBERLA_BUILD_WITH_METIS: "OFF"
WALBERLA_BUILD_WITH_PARMETIS: "OFF" WALBERLA_BUILD_WITH_PARMETIS: "OFF"
tags: tags:
- i10staff22 - testfront
artifacts:
paths:
- build
test: test:
stage: 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: variables:
SUBMIT_TO_SLURM: 1
SLURM_PARTITION: "work"
SLURM_TIMELIMIT: 20
SLURM_CONSTRAINT: hwperf
SLURM_NODELIST: broadep2
SLURM_NODES: 1
CTEST_EXCLUDE_LABELS: "longrun" CTEST_EXCLUDE_LABELS: "longrun"
CMAKE_BUILD_TYPE: "Release" 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: tags:
- i10staff22 - testfront
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