If you are looking for demonstrative examples on how to use API component from OpenMP or MPI, there are a couple of websites with useful resources.
- RookieHPC: contains documentation and examples for both OpenMP and MPI, fairly complete.
- MPI Forum: provides the most up-to-date version of the MPI documentation in HTML format.