Skip to content

Commit 8f89cc9

Browse files
committed
chore(tsan): Ignore TSan checks in OpenMP's race
Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
1 parent d9ac223 commit 8f89cc9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
keys:
3131
- fork-cache-{{ checksum "CMakeLists.txt" }}-{{ checksum ".circleci/fresh_ci_cache.commit" }}
3232
- run:
33-
command: export CMAKE_GENERATOR="Ninja" && make test_parallel
33+
command: export CMAKE_GENERATOR="Ninja" && export COMPILE_JOBS=4 && make test_parallel
3434
no_output_timeout: 50m
3535
- save_cache:
3636
key: fork-cache-{{ checksum "CMakeLists.txt" }}-{{ checksum ".circleci/fresh_ci_cache.commit" }}
@@ -47,7 +47,7 @@ jobs:
4747
keys:
4848
- main-ccache-{{ checksum "CMakeLists.txt" }}-{{ checksum ".circleci/fresh_ci_cache.commit" }}
4949
- run:
50-
command: export CMAKE_GENERATOR="Ninja" && make test_parallel
50+
command: export CMAKE_GENERATOR="Ninja" && export COMPILE_JOBS=4 && make test_parallel
5151
no_output_timeout: 50m
5252
- save_cache:
5353
key: main-ccache-{{ checksum "CMakeLists.txt" }}-{{ checksum ".circleci/fresh_ci_cache.commit" }}

.github/workflows/tsan_build_and_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
path: ./build/
6060
- name: Run TSAN tests
6161
run: |
62-
echo leak:libomp.so > omp.supp
63-
export LSAN_OPTIONS=suppressions=omp.supp
62+
echo race:libomp.so > omp.supp
63+
export TSAN_OPTIONS=suppressions=omp.supp
6464
chmod +x ./build/tests/functests
6565
./build/tests/functests "[concurrent]~[daily]"

0 commit comments

Comments
 (0)