- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I'm running an OpenMP application (minimal example) :
!$OMP PARALLEL DO
DO KR=1,100
Array_Out(KR) = Array_Input(KR)
ENDDO
!$OMP END PARALLEL DO
I verified that I do not have data race (I get the same results with only one thread), however when running the application in the Inspector XE 2013 - I get a massage that I have cross-thread stack accesses.
How can I prevent this behavior, and what is the practical effect if not on the results ?
Thanks in advance for your replies,
Jack.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cross-thread stack access means, one thread accesses the stack memory which is in another thread. For example, if you want to create a new thread with parameter(s) which may used in another thread, it might have data race. This is only a warning message.
For OpenMP program, you can ignore such information from inspector's result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Peter,
Thanks for clarifying that point.
Regards,
Jack.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page