Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iRMB
VirtualFluids
Commits
7e91fe0d
Commit
7e91fe0d
authored
4 years ago
by
Soeren Peters
Browse files
Options
Downloads
Patches
Plain Diff
Add a gnu build template.
parent
7ec3de93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+24
-43
24 additions, 43 deletions
.gitlab-ci.yml
with
24 additions
and
43 deletions
.gitlab-ci.yml
+
24
−
43
View file @
7e91fe0d
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment