|
NAMEmpif77 - Compiles and links MPI programs written in Fortran 77DESCRIPTIONThis command can be used to compile and link MPI programs written in Fortran. It provides the options and any special libraries that are needed to compile and link MPI programs.It is important to use this command, particularly when linking programs, as it provides the necessary libraries. COMMAND LINE ARGUMENTS
ENVIRONMENT VARIABLESThe environment variables MPICH_F77 may be used to select different Fortran 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.COMPATIBLE COMPILERSThe MPI library may be used with any compiler that uses the same lengths for basic data objects (such as long double ) and that uses compatible run-time libraries. On many systems, the various compilers are compatible and may be used interchangably. There are exceptions; if you use the MPICH_F77 environment variable or the -f77=name command-line argument to override the choice of compiler and encounter problems, try reconfiguring MPICH with the new compiler and installing MPICH in a separate location. See the installation manual for more details.EXAMPLESTo compile a single file foo.f , usempif77 -c foo.f To link the output and make an executable, use mpif77 -o foo foo.o Combining compilation and linking in a single command mpif77 -o foo foo.f is a convenient way to build simple programs. SELECTING A PROFILING LIBRARYThe -profile=name argument allows you to specify an MPI profiling library to be used. name can have two forms:A library in the same directory as the MPI library
If name is a library, then this library is included before the MPI library. This allows the simple use of libraries that make use of the MPI profiling interface and that are installed in the same directory as the MPI library. If name.conf is the name of a file in the sysconfdir directory, then this is read and may define the following variables:
SEE ALSOmpicc, mpicxx, mpifort, mpiexec
Visit the GSP FreeBSD Man Page Interface. |