mpi

Implementation level

Type

Status

CML extraction template

image1

HTML5 representation

image2

Template attributes

Attribute

Value

source

LAMMPS log

id

mpi

pattern

\s*MPI\stask\stiming\sbreakdown:.*

endPattern

\s*

endOffset

1

xml:base

job/mpi.xml

Input

MPI task timing breakdown:
Section |  min time  |  avg time  |  max time  |%varavg| %total
---------------------------------------------------------------
Pair    | 7788.3     | 8256.6     | 8740.9     | 295.9 | 90.15
Neigh   | 0          | 0          | 0          |   0.0 |  0.00
Comm    | 31.058     | 515.6      | 984.98     |1185.4 |  5.63
Output  | 0.7443     | 0.75185    | 0.98648    |   4.6 |  0.01
Modify  | 382.03     | 383.51     | 384.29     |   3.6 |  4.19
Other   |            | 2.165      |            |       |  0.02

Output text

 1<comment class="example.output" id="mpi">
 2        <module cmlx:templateRef="mpi">
 3            <list cmlx:templateRef="timing" dictRef="mpi">
 4               <array dataType="xsd:string" dictRef="l:section" size="6">Pair Neigh Comm Output Modify Other</array>
 5               <array dataType="xsd:double" dictRef="l:mintime" size="5">7788.3 0 31.058 0.7443 382.03</array>
 6               <array dataType="xsd:double" dictRef="l:avgtime" size="6">8256.6 0 515.6 0.75185 383.51 2.165</array>
 7               <array dataType="xsd:double" dictRef="l:maxtime" size="5">8740.9 0 984.98 0.98648 384.29</array>
 8               <array dataType="xsd:double" dictRef="l:varavg" size="5">295.9 0.0 1185.4 4.6 3.6</array>
 9               <array dataType="xsd:double" dictRef="l:totalpercent" size="6">90.15 0.00 5.63 0.01 4.19 0.02</array>
10            </list>
11         </module>
12    </comment>

Template definition

 1<record repeat="3" />
 2<record repeat="*" id="timing">{X,l:section}\|{F,l:mintime}\|{F,l:avgtime}\|{F,l:maxtime}\|{F,l:varavg}\|{F,l:totalpercent}</record>
 3<record>{X,l:section}\|\s+\|{F,l:avgtime}\|\s+\|\s+\|{F,l:totalpercent}</record>
 4<transform process="createArray" xpath="." from=".//cml:scalar[@dictRef='l:section']" />
 5<transform process="createArray" xpath="." from=".//cml:scalar[@dictRef='l:mintime']" />
 6<transform process="createArray" xpath="." from=".//cml:scalar[@dictRef='l:avgtime']" />
 7<transform process="createArray" xpath="." from=".//cml:scalar[@dictRef='l:maxtime']" />
 8<transform process="createArray" xpath="." from=".//cml:scalar[@dictRef='l:varavg']" />
 9<transform process="createArray" xpath="." from=".//cml:scalar[@dictRef='l:totalpercent']" />
10<transform process="pullup" xpath=".//cml:array" />
11<transform process="delete" xpath=".//cml:list[count(*)=0]" />
12<transform process="delete" xpath=".//cml:list[count(*)=0]" />
13<transform process="addAttribute" xpath=".//cml:list" name="dictRef" value="mpi" />