OpenMP 3
OpenMP 3
• OpenMP
• Program Structure
• Directives : master
• Clauses
• Reduction
• lastprivate
• References
Course Outline
firstprivate(list) • shared(list) : One or more list items must be shared among all
the threads in a team.
shared(list) • private (list) clause declares one or more list items must be
private to a thread.
copyin(list)
• firstprivate (list) clause declares one or more list items to be
reduction(operator:list) private to a thread and initializes each of them with that
the corresponding original item has when the construct is
encountered.
2. OpenMP Programming: Directives - Shared
• OpenMP
• Program Structure
• Directives : master
• Clauses
• Reduction
• Lastprivate
• References
Reference
Text Books and/or Reference Books:
1. Professional CUDA C Programming – John Cheng, Max Grossman, Ty McKercher, 2014
2. B.Wilkinson, M.Allen, ”Parallel Programming: Techniques and Applications Using Networked
Workstations and Parallel Computers”, Pearson Education, 1999
3. I.Foster, ”Designing and building parallel programs”, 2003
4. Parallel Programming in C using OpenMP and MPI – Micheal J Quinn, 2004
5. Introduction to Parallel Programming – Peter S Pacheco, Morgan Kaufmann Publishers,
2011
6. Advanced Computer Architectures: A design approach, Dezso Sima, Terence Fountain, Peter
Kacsuk, 2002
7. Parallel Computer Architecture : A hardware/Software Approach, David E Culler, Jaswinder
Pal Singh Anoop Gupta, 2011 8. Introduction to Parallel Computing, Ananth Grama, Anshul
Gupta, George Karypis, Vipin Kumar, Pearson, 2011
Reference
Acknowledgements
1. Introduction to OpenMP https://www3.nd.edu/~zxu2/acms60212-40212/Lec-12-OpenMP.pdf
2. Introduction to parallel programming for shared memory
Machines https://www.youtube.com/watch?v=LL3TAHpxOig
3. OpenMP Application Program Interface Version 2.5 May 2005
4. OpenMP Application Program Interface Version 5.0 November 2018