Linux Command Library
commands
Commands
basic
Basic
tips
Tips

mpicc

mpicc - Compiles and links MPI programs written in C



This command can be used to compile and link MPI programs written in C. It provides the options and any special libraries that are needed to compile and link MPI programs.

It is important to use this command (or a Makefile processed with mpireconfig ) particularly when linking programs, as it provides the necessary libraries. It can also simplify the use of the MPE profiling libraries, through the use of the -mpilog , -mpitrace , and -mpianim commands.



-mpilog - Build version that generate MPE log files-mpitrace - Build version that generates traces-mpianim - Build version that generates real-time animation-show

- Show the commands that would be used without runnning them

-help

- Give short help

-echo

- Show exactly what this program is doing. This option should normally not be used.

others

- are passed to the compiler or linker. For example, -c causes files to be compiled, -g selects compilation with debugging on most systems, and -o name causes linking with the output executable given the name name .



The environment variables MPICH_CC and MPICH_CLINKER may be used to select different C compiler and linker. Note that since MPICH is built with a particular C and Fortran compiler, change the compilers used can cause problems. Use this only if you could intermix code compiled with the different compilers.



To compile a single file foo.c , usempicc



mpif77, mpireconfig



/home/MPI/mansrc/commands

hcp(1), hf77(1), lam(7), lam-helpfile(5), libmpi(7), mpi(7), opal_wrapper(1)

play store download app store download
Imprint
Sonnenallee 29, 12047 Berlin, Germany
e-mail: sschubert89@gmail.com

Privacy policy
Successfully copied