Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Jack_S_
Beginner
89 Views

Cross stack access

Hi all,

I'm using OpenMP to parallelize a portion of my code, in a way that one subroutine is fine-grained parallelized, and other two subroutines are being called from the main program as a coarse grained parallelization.

Attached is an Intel Inspector screen shot which tells me that I do not have data race, but at least one of my threads access the stack of other thread, i.e., cross stack access.

How it can be resolved ?

Thank you,

Jack. 

0 Kudos
3 Replies
Jack_S_
Beginner
89 Views

It should be noted that the cross stack access is in the fine grained parallel subroutine.

Thank you in advance,

Jack.

John_B_2
Beginner
89 Views

I was seeing something very similar to these in my app also (on Linux) and my best guess was they were false positives, as they seemed to be in local stack variables allocated within the threads.

Jack_S_
Beginner
89 Views

Thanks John.

This was also my best guess, since I didn't observe any changes in the results of my app.

Best,

Jack.

Reply