Compiling MPI and MPI+OpenMP programs on Heracles

Home

Compiling C program by using MPI

Compiling C++ program by using MPI

Compiling fortran program by using MPI


Compiling options:

-o <file>: place the output into <file>. If this option is omitted, the compiler will create execution program named a.out in working directory.

<path>: directory where the code is. It is optional.

-O: compile the program with optimization


Combining MPI + OpenMP

Compiling C program by combining MPI and OpenMP

Compiling C++ program by combining MPI and OpenMP

Compiling fortran program by combining MPI and OpenMP