Skip to content

Conversation

@3manifold
Copy link
Contributor

@3manifold 3manifold commented Jan 22, 2026

Integrate TSAN similarly to #1903

resolves #1987

TMP
https://github.com/mrc-ide/covid-sim/pull/154/changes
https://stackoverflow.com/questions/33004809/can-i-use-thread-sanitizer-for-openmp-programs

NPROC=$(nproc)
git clone --depth 1 --recurse-submodules -j$NPROC https://github.com/llvm/llvm-project
cd llvm-project
mkdir build
cd build
cmake -DLIBOMP_TSAN_SUPPORT=1 ../openmp
NPROC=$(nproc)
sudo cmake --build . --target install --parallel $NPROC

check compliling & linking
first correct
https://github.com/OpenNMT/CTranslate2/actions/runs/21517202650?pr=1986
race condition primitivesDevice::CPU::relu
...

@3manifold 3manifold marked this pull request as ready for review January 22, 2026 09:32
@3manifold 3manifold marked this pull request as draft January 27, 2026 16:11
@3manifold 3manifold force-pushed the tsan branch 5 times, most recently from bcc57f4 to 033ffe8 Compare January 30, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clang ThreadSanitizer in CI

1 participant