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
Forum rules
The OpenMP Forums are now closed to new posts. Please visit Stack Overflow if you are in need of help: https://stackoverflow.com/questions/tagged/openmp
Posts: 1
Joined: Mon Aug 27, 2018 12:40 am

Difference between firstprivate vs. shared, performance-wise

Post by norouzi »


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,