Can I use Thread Sanitizer for OpenMP programs?

前端 未结 2 330
不思量自难忘°
不思量自难忘° 2020-12-16 18:58

Consider the following example:

#include  

int main () {
    int i = 0;
    #pragma omp parallel
    {
        #pragma omp critical
                 


        
2条回答
  •  伪装坚强ぢ
    2020-12-16 19:56

    even with the suppression you will still get false positives on the OpenMP runtime because there are some synchronization mechanism within the runtime that Tsan is not able to understand.

    We worked on the OpenMP runtime to make Tsan understand this synchronization points and remove all the false positives.

    Take a look to this project:

    https://github.com/PRUNER/archer

    Let me know if you need more help.

    Best,

    Simone

提交回复
热议问题