Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)

data race and intent(in)?

Tue_B_
Novice
405 Views

I have noted the following in my code and was wondering whether it is a bug or working as intended.

I have some code that is within a single parallel region.

SB(i)=SIN(BETA(i))

Now SB is a module variable that is threadprivate on creation.

Beta is a variable that is shared, but has intent(in) into the subroutine where this is happening.

Yet I consistently get read/write dataraces on this line according to intel inspector. 

Does anyone know why exactly I get this read/write data race here? and what I can do to remove it?

0 Kudos
2 Replies
Peter_W_Intel
Employee
405 Views

If it is a threadprivate valuable, inspector should not report data race on it, in my view. Could you please provide a simple test case so I can produce this problem in Inspector 2017 beta?   

0 Kudos
Tue_B_
Novice
405 Views

The code I'm in is quite massive and old, with a lot of Fortran 77 without interfaces. But I will try to get it cut down and send you a working example within the next week or so.

0 Kudos
Reply