Skip to content
  • Jonas Hahnfeld's avatar
    [OpenMP] Enable ThreadSanitizer to check OpenMP programs · 50fed047
    Jonas Hahnfeld authored
    This patch allows ThreadSanitizer (Tsan) to verify OpenMP programs.
    It means that no false positive will be reported by Tsan when
    verifying an OpenMP programs.
    This patch introduces annotations within the OpenMP runtime module to
    provide information about thread synchronization to the Tsan runtime.
    
    In order to enable the Tsan support when building the runtime, you must
    enable the TSAN_SUPPORT option with the following environment variable:
    
    -DLIBOMP_TSAN_SUPPORT=TRUE
    
    The annotations will be enabled in the main shared library
    (same mechanism of OMPT).
    
    Patch by Simone Atzeni and Joachim Protze!
    
    Differential Revision: https://reviews.llvm.org/D13072
    
    llvm-svn: 286115
    50fed047
Loading