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

📄 tourstepbystep.txt

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 TXT
📖 第 1 页 / 共 2 页
字号:
A Tour of Jumpshot-3Anthony Chan, William Gropp, Ewing Lusk4/27/2000AbstractJumpshot-3 is a display program for trace data in scalable log format,[slog1], which is designed to store a large number of drawable objects[slog2]generated from the backend of a parallel program, for example AIX'sUTE slogmerge or MPICH's MPE profiling library. Basically, Jumpshot-3is a GUI to display rectangles that represent the various MPI anduser-defined states and arrows indicating messages exchanged betweenthose states. This article illustrates the basic functionalities ofJumpshot-3 through a step-by-step guide of how one would usually useJumpshot-3 to view a big logfile. BackgroundAssume you are trying to view a slog file called sppm_ic2a.slog([footnote] Thelogfile is provided by Dave Wootton at IBM.) , which is generated froma run of the MPI program sppm on IBM's SP with shared-memory nodes.The logfile is located in the directory ~/jumpshot-3/logfiles/. Alsoassume that Jumpshot-3 has been successfully installed([footnote] Fordetails on how to install and start running Jumpshot-3, see README.slogand UserGuide.txt in ~/jumpshot-3.) . Typing the full pathname to theJumpshot script which is located at ~/jumsphot-3/bin/ will bring upJumpshot-3. Main Control Window([fig] <fig: main_win>The Main Control Windowof Jumpshot-3)  The first window Jumpshot-3 pops up is the Main Control window, whichis shown in Figure [fig: main_win]. The File menu tab brings up thefile selection menu. Here, doubly click to the right directory wheresppm.slog is located, and highlight sppm.slog as the logfile to beprocessed. Then the path of the logfile relative to the current workingdirectory will be printed in the logfile box, in the middle of themain control window. As soon as the pathname of the logfile appears,the Read button will be enabled. Click on the Read button to displaythe "Preview" of the logfile.The System menu tab allows you to choose the specific "Look & Feel"for the whole GUI system of Jumpshot-3([footnote] For Unix system,only Metal and Motif Look & Feel are allowed because of the licenseissue( from Sun's documentation ).) . The Help menu tab provides electronicdocumentations to Jumpshot-3, including three submenus: Manual, Tour,and About. Manual provides a brief explanation of all the buttonsin Jumpshot-3. Tour is the HTML version of this document. About providesthe version and contact information for the copy of Jumpshot-3 beingused. Statistical Preview([fig] <fig: preview>The Preview: View & FrameSelector Window.) The goal of the Statistical Preview is to help users select a framefor viewing. It consists of two windows. The major window shown inFigure [fig: preview], is titled "View & Frame Selector", but is usuallycalled "Preview". It contains a graphical representation of all theactivities going on during the run of the program sppm. Activitiesin "Preview" are computed in the following way. The whole durationof the job sppm is divided into 512 time bins. For each time bin,there are counters for each state and arrow that occur in the timebin. The counter of each state/arrow will be incremented by a statisticalweight that equals the ratio of the duration of state/arrow to thewidth of time bin that the state/arrow is in. Because of this definitionof the statistical weight for each state/arrow, very short durationstates or arrows become statistically insignificant and will not contributemuch to the accumulative activities of all the states and arrows.The visual consequence is that states/arrows with very short durationare not noticeable in "Preview". The graphical representation of theactivities of the logfiles is, by default, in accumulative histogrammode, which can be turned on/off through the button selection sequenceGraph->Type->Bar. The other mode is the noncumulative curve mode whichcan be enabled by the button selection sequence Graph->Type->Line.It is shown in Figure [fig: preview mode line]. Since it is noncumulative,as in histogram mode, it distinguishes the relative importance ofvarious states.([fig] <fig: preview mode line>Preview in non-accumulativecurve mode.)  In the lower left-hand corner of "Preview", there is a"Frame Information" panel, which lists the number of frames in thelogfile, N. In this case, there are only 3 frames in the file. Theframe size is determined by the program that generates the slog files([footnote] InAIX's UTE environment, a program called slogmerge allows user to definethe size of the frame. In MPICH's MPE environment, direct loggingmechanism implicitly assume a frame size. However, end user can changethe frame size through the use of program clog2slog.) . In general,the smaller the frame, the better the performance of Jumpshot-3 willbe in refreshing the screen. But if an overly small frame size isused, it will be increasingly difficult to navigate to the frame thatis being selected. And each frame will contain too little data forthe user to form a coherent overall picture of the code. Next to thelabel Current Frame, there is a dialog box that shows the currentframe index, which proceeds from 0 to the last frame of the file,N-1, and is initialized to 0 when the GUI starts. The user can changethe frame index by typing in the dialog box or through buttons inthe "Frame Operations", where Previous and Next buttons decrementand increment the frame index, respectively. But the user is alsoallowed to click on the graphical display to select a frame of interest.A red line will then show up in the graph to highlight the frame selected.Currently the red line is located in the middle of the frame, so thered line is moved nonuniformly along the x-axis. The redundancy inframe selection operations allows the end user to fine tune whichframe to view when the logfile contains a lot of frames. For an MPIprogram running in a multithreaded environment as in the AIX SMP box,the logfile may contain information about threads. In that case, the"Connectivity Options" and "View Options" panels become very useful.The user can choose different combinations of these options to seehow threads are dispatched and used in an MPI Program. More detailswill be in the next section.([fig] <fig: preview's legends>The Legendsof Preview) Next to the "Preview" there is a smaller window titled "Legend",which contains a set of radio buttons with different colors. Theyare tagged with the names of the MPI and user-defined calls made inthe code sppm. An illustration of "Legend" is shown in Figure [fig: preview's legends].Below the list of radio buttons there are Select/Deselect, All, None,and Change Color buttons. "Preview" and its corresponding "Legend" windows meant to be used sideby side to help you select frames that are of interest. If some ofthe states displayed in the "Preview" seem useless or confusing, itcan be easily removed. First highlight the state through click onthe name in the "Legend"; then click on Select/Deselect button toremove them from "Preview". In Figure [fig: preview deselected few states],all MPI and system-related states are deselected in "Preview" to highlightthe user-defined states "layout", "setup", "bdrys" and "glbl". Itbecomes apparent that all the communications between the user MPIprocesses are done in regular interval. Also, all communications(i.e.arrows) are within the user-defined state "bdrys". Assume you areinterested in the behavior of the program between the last two instancesof MPI_Allreduce. Then you can simply click on None to deselect allthe states and arrows, highlight MPI_Allreduce, then click Select/Deselectto display only MPI_Allreduce in the "Preview". Now click on any regionbetween the last two MPI_Allreduce's in the "Preview". Then the frameindex is changed from 0 to 2, and a red line is positioned in themiddle of the frame 2 and is also between the last two instances of

⌨️ 快捷键说明

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