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

Activate "warning like errors" for usual gcc and clang build for cpu and gpu build.

parent 6cf3d87a
No related branches found
No related tags found
1 merge request!27Remove GPU compiler warnings (Closes #4, #12)
......@@ -45,6 +45,7 @@ stages:
- cd $CI_PROJECT_DIR/$BUILD_FOLDER
- cmake ..
--preset=all_make
-DBUILD_WARNINGS_AS_ERRORS=ON
-DCMAKE_CUDA_ARCHITECTURES=60
- cmake . -LAH
- make -j4
......@@ -87,6 +88,7 @@ gcc_9_rebuild:
- rm -r -f ./*
- cmake ..
--preset=all_make_ccache
-DBUILD_WARNINGS_AS_ERRORS=ON
-DCMAKE_CUDA_ARCHITECTURES=60
- make -j4 2>&1 | tee gcc_warnings.txt
- ccache -s
......@@ -100,38 +102,6 @@ gcc_9_rebuild:
paths:
- $CI_PROJECT_DIR/cache
###############################################################################
gcc_9_cpu_warning_like_errors:
stage: build
image: irmb/virtualfluids-deps-ubuntu20.04
tags:
- gpu
- linux
before_script:
- export CCACHE_BASEDIR=$CI_PROJECT_DIR
- export CCACHE_DIR=$CI_PROJECT_DIR/cache
- ccache -s
script:
- mkdir -p $CI_PROJECT_DIR/build
- cd $CI_PROJECT_DIR/build
- rm -r -f ./*
- cmake ..
--preset=all_make_ccache
-DBUILD_WARNINGS_AS_ERRORS=ON
-DCMAKE_CUDA_ARCHITECTURES=60
- make -j4
- ccache -s
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- $CI_PROJECT_DIR/cache
###############################################################################
msvc_16:
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