Skip to content

Commit 1da68e2

Browse files
committed
Thread sanitizer tests in CI pipeline.
1 parent eda3a4a commit 1da68e2

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,15 @@ syntax:
6868
- DEBIAN_FRONTEND=noninteractive apt install -y tzdata
6969
- apt install -y python3
7070
- python3 syntax/check.py -r syntax/opdi.syntax.json tests macroexample.cpp omptexample.cpp
71+
72+
thread-sanitizer:
73+
image: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/opdilib/opdi-tsan
74+
script:
75+
- git clone --depth 1 --branch develop https://github.com/SciCompKL/CoDiPack.git
76+
- export CODI_DIR=$(pwd)/CoDiPack/include
77+
- export OPDI_DIR=$(pwd)/include
78+
- cd tests
79+
- export CXX=g++
80+
- export CXXFLAGS="-g"
81+
- export OMP_NUM_THREADS=$(expr $(nproc --all) / 2)
82+
- make all

0 commit comments

Comments
 (0)