LinuxCommandLibrary

mpicxx

compiles MPI C++ programs

TLDR

Compile MPI C++ program

$ mpicxx -o [program] [source.cpp]
copy
Compile with optimization
$ mpicxx -O3 -o [program] [source.cpp]
copy
Show compiler command
$ mpicxx --showme
copy

SYNOPSIS

mpicxx [options] sourcefiles_...

DESCRIPTION

mpicxx compiles MPI C++ programs. Wrapper around system C++ compiler with MPI includes and libraries. Same as mpic++. Part of OpenMPI or MPICH implementations.

PARAMETERS

-o file

Output file name.
-O level
Optimization level.
--showme
Show underlying compiler command.
-I dir
Include directory.
-L dir
Library directory.

SEE ALSO

mpirun(1), mpic++(1), mpicc(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community