Here you can find short installation and usage guides, as well as some documents about OMPi internals. More documentation is provided within the source distribution, found in our download page.
Prerequisites
The basic requirements for building and installing OMPi on your system are:
- The meson build system (version 0.58.0 or later required)
- A C compiler (e.g.
gcc)
Quick Installation Guide
- Extract the package
tar xvf ompi-X.Y.Z.tar.xz
- Prepare for building and installing (see below for advanced configuration options)
meson setup build --prefix=‹install-dir›
This will create a directory named
buildwhere OMPi will be built;install-diris the directory OMPi will be installed at. If omitted,/usr/local/will be used by default. - Compile and install the package
cd build/ meson compile meson install
- Make sure
‹install-dir›/binis in your PATH
Quick Usage Guide
Usage: ompicc [options] files.c
Example:
ompicc -o executable file1.c file2.c
Basic options:
- all (g)cc flags
-k: the generated (transformed) file is kept after compilation-K: all intermediate generated files are kept after compilation-v: be verbose (shows all steps of the translation process)--options: show all available options (see below for some of them)
Don’t forget to consult the implementation-specific OpenMP behaviors which are bundled with the OMPi source code package.