Difference between firstprivate vs. shared, performance-wise

Use this forum to discuss the book: Using OpenMP - Portable Shared Memory Parallel Programming, by Barbara Chapman, Gabriele Jost and Ruud van der Pas Read the http://openmp.org/forum/viewtopic.php?f=8&t=465 for book info and to download the examples. Post your feedback about the book and examples to this forum
Post Reply
norouzi
Posts: 1
Joined: Mon Aug 27, 2018 12:40 am

Difference between firstprivate vs. shared, performance-wise

Post by norouzi »

Hi,

I have read in the book "Using OpenMP: Portable Shared Memory Parallel Programming" that firstprivate is more efficient than shared for readonly variables in ccNUMA architectures (pp. 76).

Could you please help me understand the reason?

Thank you and Best,
Mohammad

Post Reply