26.12.2014 Views

Intel® Trace Analyzer User's Reference Guide

Intel® Trace Analyzer User's Reference Guide

Intel® Trace Analyzer User's Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Intel® <strong>Trace</strong> <strong>Analyzer</strong> <strong>User's</strong> <strong>Reference</strong> <strong>Guide</strong><br />

Note that the time spent in MPI_Sendrecv grows with the process number while<br />

the time for MPI_Allreduce decreases. The Message Profile (the section called<br />

“The Message Profile”) in the bottom right corner of Figure 1.9, “Many Charts”<br />

shows that messages traveling from a higher rank to a lower rank need more and<br />

more time with increasing rank while the messages traveling from lower rank to<br />

higher rank do reveal a weak even-odd kind of pattern.<br />

Figure 1.9. Many Charts<br />

As poisson_sendrecv.single.stf is such a striking example of serialization,<br />

next to all Charts provided by the Intel <strong>Trace</strong> <strong>Analyzer</strong> reveal this interesting<br />

pattern. But in real world cases it might be necessary to formulate a hypothesis<br />

regarding how the program should behave and to check this hypothesis using<br />

the most adequate Chart.<br />

A possible way to improve the performance of the program is to use nonblocking<br />

communication to replace the usage of MPI_Sendrecv and to avoid the<br />

serialization in this way. One iteration of the resulting program looks like the one<br />

shown in Figure 1.10, “One iteration of the improved version”. Note that a single<br />

iteration now takes about 0.9 milliseconds, while it took about 1.4 milliseconds<br />

before the change.<br />

Figure 1.10. One iteration of the improved version<br />

To compare two trace files the Intel <strong>Trace</strong> <strong>Analyzer</strong> offers the so called<br />

Comparison View (see Chapter 7, Comparison of two <strong>Trace</strong> Files). Just<br />

use the menu entry View Menu → View → Compare in the View showing<br />

poisson_sendrecv.single.stf. In the now appearing dialog choose another<br />

Document number: 318120-002 8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!