⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node22.htm

📁 空间物理学研究需要有并行的环境
💻 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>Performance measurements</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<HR><H2><A NAME="Node22">Performance measurements</a></H2>
<A HREF="node18.htm#Node21"><IMG WIDTH=16 HEIGHT=16 SRC="previous.xbm"></A><A HREF="node8.htm#Node8"><IMG WIDTH=16 HEIGHT=16 SRC="up.xbm"></A><A HREF="node23.htm#Node23"><IMG WIDTH=16 HEIGHT=16 SRC="next.xbm"></A><BR>
<b>Up: </b><A HREF="node8.htm#Node8"> Programming Tips</a>
<b>Next: </b><A HREF="node23.htm#Node23"> Tools</a>
<b>Previous: </b><A HREF="node18.htm#Node21"> Jumpshot</a>
<P>
  
<P> 
<CENTER><P><IMG WIDTH=352 HEIGHT=245 SRC="mpptestnt.gif"><P>
</CENTER>  
<BR> 
<b>Figure 1: </b><A NAME="Figure1">Sample output from <tt> mpptest</tt></a><P> 
  
  
The <tt> mpich<IMG WIDTH=5 HEIGHT=11 SRC="img39.xbm">
sdk<IMG WIDTH=5 HEIGHT=11 SRC="img40.xbm">
examples<IMG WIDTH=5 HEIGHT=11 SRC="img41.xbm">
nt<IMG WIDTH=431 HEIGHT=237 SRC="img42.xbm">
mpptest</tt>   
directory contains a sophisticated tool for  
measuring latency and bandwidth for <TT>mpich</TT> on your system.  After building mpptest from  
the examples workspace in MSDEV Studio, simply change to the   
<tt> mpichsdk<IMG WIDTH=5 HEIGHT=11 SRC="img43.xbm">
examples<IMG WIDTH=5 HEIGHT=11 SRC="img44.xbm">
nt<IMG WIDTH=5 HEIGHT=11 SRC="img45.xbm">
mpptest</tt>   
directory and do  
<BR> 
<pre><tt>    mpirun -np 2 mpptest -gnuplot &gt; out.gpl 
</tt></pre> 
The file <em>out.gpl</em> will then contain the necessary <tt>gnuplot</tt>  
commands.  The  
file <em>mppout.gpl</em> will contain the data.  To view the data with  
<tt>gnuplot</tt>,   
use:  
<BR> 
<pre><tt>    gnuplot out.gpl 
</tt></pre> 
or use  
<BR> 
<pre><tt>    load 'out.gpl' 
</tt></pre> 
from within <tt>gnuplot</tt>.    
You can use   
<BR> 
<pre><tt>    gnuplot 
    set term postscript eps 
    set output "foo.eps" 
    load 'out.gpl' 
</tt></pre> 
to create an Encapsulated Postscript graph such as the one in  
Figure <a href="node22.htm#Figure1">1 
</a>.  
<P> 
The program <tt>mpptest</tt> has a wide variety of  
capabilities; the option <tt>-help</tt> will list them.  For example,  
<tt>mpptest</tt> can automatically pick message lengths to discover any sudden  
changes in behavior and can investigate the ability to overlap communication  
with computation. More information is available  
at <A HREF="http://www.mcs.anl.gov/mpi/mpptest">http://www.mcs.anl.gov/mpi/mpptest</A>.   
<P> 
gnuplot can be found here: <A HREF="ftp://ftp.dartmouth.edu/pub/gnuplot">ftp://ftp.dartmouth.edu/pub/gnuplot</A>  
<P> 
Benchmarking can be very tricky.  Some common benchmarking errors are  
discussed at <A HREF="http://www.mcs.anl.gov/mpi/mpptest/hownot.html">http://www.mcs.anl.gov/mpi/mpptest/hownot.html</A>.  
The paper [<a href="node66.htm#-Bib10">10</a>] discusses these issues  
at more length.    
<P> 

<P>
<HR>
<A HREF="node18.htm#Node21"><IMG WIDTH=16 HEIGHT=16 SRC="previous.xbm"></A><A HREF="node8.htm#Node8"><IMG WIDTH=16 HEIGHT=16 SRC="up.xbm"></A><A HREF="node23.htm#Node23"><IMG WIDTH=16 HEIGHT=16 SRC="next.xbm"></A><BR>
<b>Up: </b><A HREF="node8.htm#Node8"> Programming Tips</a>
<b>Next: </b><A HREF="node23.htm#Node23"> Tools</a>
<b>Previous: </b><A HREF="node18.htm#Node21"> Jumpshot</a>
<P>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -