From d3fdfa2dc6b93fdd2d0c41e7ffc18da49f8e71bd Mon Sep 17 00:00:00 2001 From: Lukas Werner <lks.werner@fau.de> Date: Tue, 8 Jun 2021 06:17:16 +0000 Subject: [PATCH] Update example.gitlab-ci.yml --- example.gitlab-ci.yml | 38 ++++---------------------------------- 1 file changed, 4 insertions(+), 34 deletions(-) diff --git a/example.gitlab-ci.yml b/example.gitlab-ci.yml index ba0704e..d73eb98 100644 --- a/example.gitlab-ci.yml +++ b/example.gitlab-ci.yml @@ -1,8 +1,3 @@ -############################################################################### -## ## -## General settings ## -## ## -############################################################################### variables: AUTH_USER: hpc_username @@ -10,17 +5,14 @@ stages: - build - test -############################################################################### -## ## -## Build templates ## -## ## -############################################################################### - -.build_template: +gcc_9_mpionly: + stage: build script: - module load cmake/3.11.1 - module load openmpi/3.1.5-gcc - module load gcc/9.1.0 + - export CXX=g++ + - export CC=gcc - 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" @@ -57,34 +49,12 @@ stages: - make -j $NUM_BUILD_CORES -l $NUM_CORES ReduceTest variables: CTEST_EXCLUDE_LABELS: "longrun" - WALBERLA_BUILD_WITH_MPI: "ON" - WALBERLA_BUILD_WITH_OPENMP: "ON" OMP_NUM_THREADS: "4" OMP_WAIT_POLICY: "PASSIVE" CMAKE_BUILD_TYPE: "Release" WALBERLA_BUFFER_DEBUG: "OFF" WALBERLA_DOUBLE_ACCURACY: "ON" - WALBERLA_BUILD_WITH_METIS: "ON" - WALBERLA_BUILD_WITH_PARMETIS: "ON" WALBERLA_ENABLE_GUI: "OFF" - tags: - - testfront - - -############################################################################### -## ## -## Linux builds ## -## ## -############################################################################### - -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" -- GitLab