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

Simultaneous access to arrays

jan_barnholt
Beginner
534 Views
Thread Checker reports several conflicts when our application
accesses arrays simultaneously from several threads.

I couldn't find a note in the documentation whether the VTune TC
makes a distinction for the array elements accessed or if any
concurrent access to the array (regardless what index) is reported
as a conflict.

In other words, if thread 1 always accesses the array at
index 1 and thread 2 concurrently accesses index 2, will this
arouse a conflict ?

regards,
J. Barnholt
0 Kudos
2 Replies
TimP
Honored Contributor III
534 Views
I wouldn't be surprised if a potential conflict were always reported for simultaneous access to the same array. I can't imagine a useful case simple enough for easy diagnosis. Even if there is no actual conflict, but false sharing is likely, the warning could be helpful.
I also would be interested in a more authoritative answer.
0 Kudos
TimP
Honored Contributor III
534 Views
I suppose this question might be appropriate for the threading forum.
0 Kudos
Reply