Skip to content
Snippets Groups Projects
Commit 7e91fe0d authored by Soeren Peters's avatar Soeren Peters
Browse files

Add a gnu build template.

parent 7ec3de93
No related branches found
No related tags found
No related merge requests found
......@@ -31,72 +31,53 @@ gcc_9_python:
script:
- python3 setup.py install
gcc_9:
###############################################################################
.gnu_build_template:
stage: build
image: irmb/virtualfluids-deps-ubuntu20.04
tags:
- gpu
- linux
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-gcc9-hybrid"
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- build_gcc9
- $BUILD_FOLDER
artifacts:
paths:
- build_gcc9
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get update
- apt-get install -y libboost-serialization-dev
- cd /tmp
- apt-get install unzip
- wget https://github.com/NVIDIA/cuda-samples/archive/10.1.2.zip
- unzip 10.1.2.zip
- export NVCUDASAMPLES_ROOT=$(pwd)/cuda-samples-10.1.2
- $BUILD_FOLDER
script:
- cd $CI_PROJECT_DIR
- mkdir -p build_gcc9
- cd build_gcc9
- $CXX --version
- $CC --version
- cmake --version
- mpirun --version
- mkdir -p $CI_PROJECT_DIR/$BUILD_FOLDER
- cd $CI_PROJECT_DIR/$BUILD_FOLDER
- cmake .. -DBUILD_VF_CPU=ON -DBUILD_VF_GPU=ON
- cmake . -LAH
- make -j4
clang_10:
stage: build
tags:
- gpu
- linux
image: irmb/virtualfluids-deps-ubuntu20.04
variables:
BUILD_FOLDER: "build"
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-clang10-hybrid"
paths:
- build_clang10
###############################################################################
gcc_9:
extends: .gnu_build_template
artifacts:
paths:
- build_clang10
###############################################################################
clang_10:
extends: .gnu_build_template
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get update
- export CC=clang
- export CXX=clang++
- $CXX --version
script:
- cd $CI_PROJECT_DIR
- mkdir -p build_clang10
- cd build_clang10
- cmake .. -DBUILD_VF_CPU=ON -DBUILD_VF_GPU=ON
- make -j4
###############################################################################
msvc_16:
stage: build
......@@ -137,7 +118,7 @@ msvc_16:
paths:
- $CI_PROJECT_DIR/$env:BUILD_FOLDER/
###############################################################################
build_singularity_image:
stage: build
rules:
......@@ -152,7 +133,7 @@ build_singularity_image:
- ls -sh Containers/VirtualFluidsOpenMPI.sif
###############################################################################
gcc_9_rebuild:
stage: build
......
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