MPI Commands mpicc (1MPI)

NAME

mpicc - MPI compiler frontend

SYNOPSIS

mpicc/mpic++/mpif77/mpif90 [-q32/-q64] [compiler options] ... files ...

DESCRIPTION

The synopsis runs a compiler with inclusion and libraries for GridMPI. Specifically $MPIROOT/include and $MPIROOT/lib/libmpi.a $MPIROOT/lib/libmpif.a are appended.

OPTIONS

The following options are supported:

-q32 or -q64
Specifies the binary bit length of the target. It is necessary to configure using "--with-binmode" to use -q32/-q64 (configure, make, and make-install procedure be run twice). Do not specify them when configured without "--with-binmode".

EXIT STATUS

The mpicc returns a status from the invoked compiler.

ENVIRONMENT VARIABLES

MPIROOT=path-to-the-installation
Specifies the directory of GridMPI installation. The mpicc command itself can be found in $MPIROOT/bin. The include and library pathes are $MPIROOT/include and $MPIROOT/lib.

_YAMPI_CC
specifies C compiler if defined.

_YAMPI_CXX
specifies C++ compiler if defined.

_YAMPI_F77
specifies f77 compiler if defined.

_YAMPI_F90
specifies f90 compiler if defined.

_YAMPI_EXTCOPT
is passed to C/C++ compiler if defined.

_YAMPI_EXTFOPT
is passed to f77/f90 compiler if defined.

_YAMPI_EXTLDOPT
is passed to compiler if defined when "-c" does not appear in the options.

_YAMPI_EXTLIBS
is appended to the library list and passed to compiler if defined, when "-c" does not appear in the options.

_YAMPI_CKPTLIBS
is appended to the library list and passed to compiler if defined, when "-c" does not appear in the options.

_YAMPI_SCORELIB
is appended to the library list and passed to compiler if defined, when "-c" does not appear in the options.

_YAMPI_MXLIB
is appended to the library list and passed to compiler if defined, when "-c" does not appear in the options.

_YAMPI_CC32FLAG
is a compiler option to be passed when compiling with -q32.

_YAMPI_CC64FLAG
is a compiler option to be passed when compiling with -q64.

_YAMPI_LD64FLAG
is a compiler option to be passed when compiling with -q64.

EXAMPLES

Example

mpicc -g pi.c

RESTRICTIONS

mpicc/mpic++/mpif77/mpif90 are links to the same file. It is a simple script. It records the options for a compiler found at configuration time, and thus, reconfiguration with specifying compilers is needed to recreate the options. Copy and modify it when complex compiling/linking is needed.


($Date: 2006/09/04 10:31:06 $)