Reaching Others University at Buffalo - The State University of New York
Skip to Content

OpenMP

OpenMP is an application programming interface (API) intended for directing multi-threaded shared memory parallelism.

Category:  Multi-threading

 

OpenMP is the Open Specification for Multi Processing. 

OpenMP provides:

  • Compiler directives
  • Run-time library routines
  • Environmental variables

OpenMP is specified for C/C++ and Fortran compilers.  Directives for INTEL, GNU and PGI compilers.

Usage Notes:

The GNU compiler is the default path.

Load the module for the intel or pgi compiler:  module load intel/version

Compile the code with the OpenMP flag:

  • INTEL:  -openmp
  • GNU:  -fopenmp
  • PGI:  -mp