Some sample code illustrating OpenMP concepts and techniques.
Allocation
: illustration of how to do memory allocation and initialization taking into account data locality in the context of OpenMP.FortranBlock
: using a Fortran block construct in an OpenMP block (don't!!!)Iterators
: illustrates how to use an OpenMPfor
with C++ random access iterators, and thelinear
clause on that directive..
MultiLevel`: illustration of nested OpenMP in the context of Intel's MKL library (SVD).ReentrantFunctions
: illustration of reentrant versus non-reentrant functions.Tasks
: some examples of using OpenMP tasks