Skip to content

Commit afd07eb

Browse files
committed
Enable address sanitizer for mpi4py runs
Signed-off-by: Joseph Schuchart <[email protected]>
1 parent 7c5a405 commit afd07eb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ompi_mpi4py.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ on:
1515
required: false
1616
type: string
1717

18+
env:
19+
LD_PRELOAD: libasan.so
20+
ASAN_OPTIONS: detect_odr_violation=1,abort_on_error=1
21+
LSAN_OPTIONS: detect_leaks=0
22+
23+
1824
jobs:
1925
test:
2026
runs-on: ubuntu-22.04
@@ -56,7 +62,8 @@ jobs:
5662
--disable-oshmem
5763
--disable-silent-rules
5864
--prefix=/opt/openmpi
59-
LDFLAGS=-Wl,-rpath,/opt/openmpi/lib
65+
CFLAGS="-g -O0 -fsanitize=address"
66+
LDFLAGS="-Wl,-rpath,/opt/openmpi/lib -fsanitize=address"
6067
working-directory: mpi-build
6168

6269
- name: Build MPI

0 commit comments

Comments
 (0)