~ubuntu-branches/ubuntu/vivid/mpich/vivid-proposed

« back to all changes in this revision

Viewing changes to www/www1/mpif90.html

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2014-04-01 20:24:20 UTC
  • mfrom: (5.2.4 sid)
  • Revision ID: package-import@ubuntu.com-20140401202420-t5ey1ia2klt5dkq3
Tags: 3.1-4
* [c3e3398] Disable test_primitives, which is unreliable on some platforms.
            (Closes: #743047)
* [265a699] Add minimal autotest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
can be used to see what options and include paths are
35
35
used by mpif90.
36
36
 
37
 
<DT><B>-link_info </B><DD>Show the steps for linking a program.  This optoin 
 
37
<DT><B>-link_info </B><DD>Show the steps for linking a program.  This option
38
38
can be used to see what options and libraries are used by
39
39
mpif90.
40
40
 
44
44
<DT><B>-echo      </B><DD>Show exactly what this program is doing.
45
45
This option should normally not be used.
46
46
 
47
 
<DT><B>others     </B><DD>are passed to the compiler or linker.  For example, <TT>-c
48
 
</TT>causes files to be compiled, <TT>-g</TT> selects compilation with
49
 
debugging on most systems, and <TT>-o name</TT> causes linking 
 
47
<DT><B>others     </B><DD>are passed to the compiler or linker.  For example, <TT>\-c
 
48
</TT>causes files to be compiled, <TT>\-g</TT> selects compilation with
 
49
debugging on most systems, and <TT>\-o name</TT> causes linking
50
50
with the output executable given the name <TT>name</TT>.
51
51
</DL>
52
52
<P>
63
63
uses compatible run-time libraries.  On many systems, the various
64
64
compilers are compatible and may be used interchangably.  There are
65
65
exceptions; if you use the <TT>MPICH_F90</TT> environment variable or the
66
 
<TT>-f90=name</TT> command-line argument to override the choice of compiler
 
66
<TT>\-f90=name</TT> command-line argument to override the choice of compiler
67
67
and encounter problems, try reconfiguring MPICH with the new compiler
68
68
and installing MPICH in a separate location.  See the installation manual
69
69
for more details.
71
71
<H2>Examples</H2>
72
72
To compile a single file <TT>foo.f</TT>, use
73
73
<PRE>
74
 
   mpif90 -c foo.f 
 
74
   mpif90 \-c foo.f
75
75
</PRE>
76
76
 
77
77
<P>
78
78
To link the output and make an executable, use
79
79
<PRE>
80
 
   mpif90 -o foo foo.o
 
80
   mpif90 \-o foo foo.o
81
81
</PRE>
82
82
 
83
83
Combining compilation and linking in a single command
84
84
<PRE>
85
 
   mpif90 -o foo foo.f
 
85
   mpif90 \-o foo foo.f
86
86
</PRE>
87
87
 
88
88
is a convenient way to build simple programs.
89
89
<P>
90
90
<H2>Selecting a Profiling Library</H2>
91
 
The <TT>-profile=name</TT> argument allows you to specify an MPI profiling
 
91
The <TT>\-profile=name</TT> argument allows you to specify an MPI profiling
92
92
library to be used.  <TT>name</TT> can have two forms:
93
93
<P>
94
94
<BR>A library in the same directory as the MPI library
114
114
</DL>
115
115
<P>
116
116
<PRE>
117
 
    PROFILE_PRELIB="-L/usr/local/myprof/lib -lmyprof"
118
 
    PROFILE_INCPATHS="-I/usr/local/myprof/include"
 
117
    PROFILE_PRELIB="\-L/usr/local/myprof/lib \-lmyprof"
 
118
    PROFILE_INCPATHS="\-I/usr/local/myprof/include"
119
119
</PRE>
120
120
 
121
121
and place it in the sysconfdir directory (this directory is set at
122
122
configure time when MPICH is built).  Then using the command-line
123
 
argument <TT>-profile=myprof</TT> will cause these
 
123
argument <TT>\-profile=myprof</TT> will cause these
124
124
definitions to be added to the relevant compile commands.
125
125
<P>
126
126
<H2>See Also</H2>
127
127
 mpicc, mpicxx, mpif90, mpiexec
128
 
<BR><P><B>Location:</B>src/env/mpif90.txt<P>
 
128
<BR><P><B>Location:</B>/tmp/gyCYfBi4J6/mpich-3.1/src/env/mpif90.txt<P>
129
129
</BODY></HTML>