Skip to content

Commit

Permalink
ci - ASAN for CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylt committed Oct 10, 2024
1 parent dfc3c7d commit 1a930f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ noether-cuda:
- echo "-------------- FC ------------------" && $FC --version
- echo "-------------- NVCC ----------------" && $NVCC --version
- echo "-------------- GCOV ----------------" && gcov --version
# ASAN
- echo "-------------- ASAN ----------------"
- export ASAN=1 AFLAGS="-fsanitize=address -fsanitize=leak" ASAN_OPTIONS=protect_shadow_gap=0
- echo $AFLAGS
script:
- rm -f .SUCCESS
# libCEED
Expand All @@ -200,6 +204,10 @@ noether-cuda:
# Note: PETSC_DIR is set by default in GitLab runner env, unsetting to isolate core tests
- export PETSC_DIR= PETSC_ARCH=
- make -k -j$((NPROC_GPU / NPROC_POOL)) BACKENDS="$BACKENDS_GPU" JUNIT_BATCH="cuda" junit realsearch=%
# Rebuild without ASAN
- export ASAN=0
- PEDANTIC make
- clean=1 make -k -j$NPROC_CPU -l$NPROC_CPU
# Libraries for examples
# -- PETSc with CUDA (minimal)
- 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
Expand Down

0 comments on commit 1a930f3

Please sign in to comment.