Skip to content

Commit 54ff63c

Browse files
committed
ci - ASAN for CUDA
1 parent dfc3c7d commit 54ff63c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.gitlab-ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ noether-cuda:
186186
- echo "-------------- FC ------------------" && $FC --version
187187
- echo "-------------- NVCC ----------------" && $NVCC --version
188188
- echo "-------------- GCOV ----------------" && gcov --version
189+
# ASAN
190+
- echo "-------------- ASAN ----------------"
191+
- export ASAN=1 AFLAGS="-fsanitize=address -fsanitize=leak"
192+
- echo $AFLAGS
189193
script:
190194
- rm -f .SUCCESS
191195
# libCEED
@@ -200,6 +204,10 @@ noether-cuda:
200204
# Note: PETSC_DIR is set by default in GitLab runner env, unsetting to isolate core tests
201205
- export PETSC_DIR= PETSC_ARCH=
202206
- make -k -j$((NPROC_GPU / NPROC_POOL)) BACKENDS="$BACKENDS_GPU" JUNIT_BATCH="cuda" junit realsearch=%
207+
# Rebuild without ASAN
208+
- export ASAN=0
209+
- make clean
210+
- PEDANTIC=1 make -k -j$NPROC_CPU -l$NPROC_CPU
203211
# Libraries for examples
204212
# -- PETSc with CUDA (minimal)
205213
- export PETSC_DIR=/projects/petsc PETSC_ARCH=mpich-cuda-O PETSC_OPTIONS='-use_gpu_aware_mpi 0' && git -C $PETSC_DIR -c safe.directory=$PETSC_DIR describe

0 commit comments

Comments
 (0)