📄 node7.htm
字号:
<HTML>
<HEAD>
<!-- This file was generated by tohtml from mpichntman.tex -->
<!-- with the command
tohtml -default -dosnl -gaudy -basedef mpiman.def mpichntman.tex
-->
<TITLE>Making and running an example</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<HR><H2><A NAME="Node7">Making and running an example</a></H2>
<A HREF="node6.htm#Node6"><IMG WIDTH=16 HEIGHT=16 SRC="previous.xbm"></A><A HREF="node3.htm#Node3"><IMG WIDTH=16 HEIGHT=16 SRC="up.xbm"></A><A HREF="node8.htm#Node8"><IMG WIDTH=16 HEIGHT=16 SRC="next.xbm"></A><BR>
<b>Up: </b><A HREF="node3.htm#Node3"> Quick Start</a>
<b>Next: </b><A HREF="node8.htm#Node8"> Programming Tips</a>
<b>Previous: </b><A HREF="node6.htm#Node6"> Configuring</a>
<P>
There are sample MPI applications in the
<tt> MPICH<IMG WIDTH=5 HEIGHT=11 SRC="img4.xbm">
SDK<IMG WIDTH=5 HEIGHT=11 SRC="img5.xbm">
examples<IMG WIDTH=5 HEIGHT=11 SRC="img6.xbm">
nt</tt> directory.
They can be built with Microsoft Visual Studio 6.x, Visual Fortran 6.x, gcc and g77.
<P>
<ol>
1. Open the MSDEV workspace file found in
<tt> MPICH<IMG WIDTH=5 HEIGHT=11 SRC="img7.xbm">
SDK<IMG WIDTH=5 HEIGHT=11 SRC="img8.xbm">
examples<IMG WIDTH=5 HEIGHT=11 SRC="img9.xbm">
nt<IMG WIDTH=5 HEIGHT=11 SRC="img10.xbm">
examples.dsw</tt>.
<BR>
2. Build the Debug target of the cpi project.
<BR>
3. Copy
<tt> MPICH<IMG WIDTH=5 HEIGHT=11 SRC="img11.xbm">
SDK<IMG WIDTH=5 HEIGHT=11 SRC="img12.xbm">
examples<IMG WIDTH=5 HEIGHT=11 SRC="img13.xbm">
nt<IMG WIDTH=5 HEIGHT=11 SRC="img14.xbm">
basic<IMG WIDTH=5 HEIGHT=11 SRC="img15.xbm">
Debug<IMG WIDTH=5 HEIGHT=11 SRC="img16.xbm">
cpi.exe</tt>
to a shared directory or to the same place on all the machines in your cluster.
For example you could copy <tt> cpi.exe</tt> to
<tt> c:<IMG WIDTH=5 HEIGHT=11 SRC="img17.xbm">
temp<IMG WIDTH=5 HEIGHT=11 SRC="img18.xbm">
cpi.exe</tt> on all the nodes.
<BR>
4. Open a command prompt and change to the directory where you placed <tt> cpi.exe</tt>.
<BR>
5. Execute '<tt> MPICH<IMG WIDTH=5 HEIGHT=11 SRC="img19.xbm">
mpd<IMG WIDTH=5 HEIGHT=11 SRC="img20.xbm">
bin<IMG WIDTH=5 HEIGHT=11 SRC="img21.xbm">
mpirun.exe -np 4 cpi</tt>'.
</ol>
<P>
<HR>
<A HREF="node6.htm#Node6"><IMG WIDTH=16 HEIGHT=16 SRC="previous.xbm"></A><A HREF="node3.htm#Node3"><IMG WIDTH=16 HEIGHT=16 SRC="up.xbm"></A><A HREF="node8.htm#Node8"><IMG WIDTH=16 HEIGHT=16 SRC="next.xbm"></A><BR>
<b>Up: </b><A HREF="node3.htm#Node3"> Quick Start</a>
<b>Next: </b><A HREF="node8.htm#Node8"> Programming Tips</a>
<b>Previous: </b><A HREF="node6.htm#Node6"> Configuring</a>
<P>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -