Skip to content

Commit

Permalink
Suppress data race during ittnotify initialization (#659)
Browse files Browse the repository at this point in the history
Signed-off-by: Serov, Vladimir <vladimir.serov@intel.com>
  • Loading branch information
Vladimir Serov authored and kboyarinov committed Dec 27, 2021
1 parent 70455c7 commit 2aee740
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/sanitize.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ if (NOT ${FLAG_DISPLAY_NAME})
"please try another compiler or omit TBB_SANITIZE variable")
endif()

set(TBB_TESTS_ENVIRONMENT ${TBB_TESTS_ENVIRONMENT} "LSAN_OPTIONS=suppressions=${CMAKE_CURRENT_SOURCE_DIR}/cmake/suppressions/lsan.suppressions")
set(TBB_TESTS_ENVIRONMENT ${TBB_TESTS_ENVIRONMENT}
"TSAN_OPTIONS=suppressions=${CMAKE_CURRENT_SOURCE_DIR}/cmake/suppressions/tsan.suppressions"
"LSAN_OPTIONS=suppressions=${CMAKE_CURRENT_SOURCE_DIR}/cmake/suppressions/lsan.suppressions")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TBB_SANITIZE_OPTION}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${TBB_SANITIZE_OPTION}")
3 changes: 3 additions & 0 deletions cmake/suppressions/tsan.suppressions
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# TSAN suppression for known issues.
# Possible data race during ittnotify initialization. Low impact.
race:__itt_nullify_all_pointers

0 comments on commit 2aee740

Please sign in to comment.