MPIF77(1) | MPIF77(1) |
compiler | description | platform | binary package | ||
---|---|---|---|---|---|
Red Hat 6.2 on pentium | Red Hat 6.2 on alpha | TurboLinux 6.1 | |||
gnu | GNU Fortran compiler (default) | all | include | include | include |
absoft | Absoft ProFortran compilers | i386 | not include | not include | not include |
pgi | The Portland Group Fortran compiler | i386 | include | not include | not include |
fujitsu | Fujitsu Fortran compilers | i386 | include | not include | not include |
compaq | Compaq Fortran compiler | alpha | not include | include | not include |
foo.f
use:
mpif77 -c foo.fTo link the output and make an executable, use:
mpif77 -o foo foo.oCombining compilation and linking in a single command:
mpif77 -o foo foo.fAlthough this is a convenient way to build simple programs, it may not work on some systems, and thus is not recommended.
Combining a compilation environment with a specific compiler:
mpif77 -compiler gnu -compiler-path /usr/tool/gcc/bin/g77