Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Tue_B_
Beginner
65 Views

data race and intent(in)?

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
65 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?   

Tue_B_
Beginner
65 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.

Reply