File: mpif90.1

package info (click to toggle)
mpich 1.2.5.3-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 53,880 kB
  • ctags: 44,904
  • sloc: ansic: 260,029; cpp: 91,556; sh: 42,421; java: 33,448; makefile: 8,959; fortran: 4,601; tcl: 3,548; f90: 3,517; perl: 2,251; asm: 999; csh: 856
file content (115 lines) | stat: -rw-r--r-- 2,213 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
.TH mpif90 1 "11/23/1999" " " "MPI Commands"
.SH NAME
mpif90 \-  Compiles and links MPI programs written in Fortran 90 
.SH DESCRIPTION
This command can be used to compile and link MPI programs written in
Fortran 90.  It provides the options and any special libraries that are
needed to compile and link MPI programs.

This command is still under development, as is support in MPICH
for Fortran 90.

It is important to use this command (or a 
.I Makefile
processed with
.I 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 
.I -mpilog
, 
.I -mpitrace
,
and 
.I -mpianim
commands.

.SH COMMAND LINE ARGUMENTS
.PD 0
.TP
.B -mpilog    
- Build version that generate MPE log files
.PD 1
.PD 0
.TP
.B -mpitrace  
- Build version that generates traces
.PD 1
.PD 0
.TP
.B -mpianim   
- Build version that generates real-time
animation
.PD 1
.PD 0
.TP
.B -show      
- Show the commands that would be used without
runnning them
.PD 1
.PD 0
.TP
.B -help      
- Give short help
.PD 1
.PD 0
.TP
.B -echo      
- Show exactly what this program is doing.
This option should normally not be used.
.PD 1
.PD 0
.TP
.B others     
- are passed to the compiler or linker.  For example, 
.I -c
causes files to be compiled, 
.I -g
selects compilation with debugging
on most systems, and 
.I -o name
causes linking with the output
executable given the name 
.I name
\&.

.PD 1

.SH ENVIRONMENT VARIABLES
The environment variables 
.I MPICH_F90
and 
.I MPICH_F90LINKER
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.

.SH EXAMPLES

To compile a single file 
.I foo.f
, use
.nf
mpif90 -c foo.f
.fi


To link the output and make an executable, use
.nf
mpif90 -o foo foo.o
.fi

Combining compilation and linking in a single command
.nf
mpif90 -o foo foo.f
.fi

is a convenient way to build simple programs.

.SH SEE ALSO
mpicc, mpif77, mpiCC, mpireconfig
.br
.SH LOCATION
/home/MPI/mansrc/commands