Hybrid Program Template
Each of the hybrid examples use the same basic structure, as outlined below:
Start with MPI initialization |
MPI_Init_thread ... MPI_Call ... |
(Serial regions are executed by the main thread of the MPI process) | |
Create OpenMP parallel regions within each MPI process
|
OMP parallel ... MPI_Call ... end parallel |
Call MPI in single-threaded regions |
... MPI_Call |
Finalize MPI |
... MPI_Finalize |