User Tools

Site Tools


code:run_swarm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
code:swarm [2015/01/20 20:04] – add missing loops oschuettcode:run_swarm [2015/01/20 21:05] oschuett
Line 1: Line 1:
-====== Flow Chart of SWARM ====== +<graphviz dot>
- +
-<graphviz dot width=500>+
 digraph swarm { digraph swarm {
-  Start [shape=ellipse];+  start [shape=ellipse, label="run_swarm()"];
   split_comm[shape=box, label="Split MPI-communicator\ninto a master rank\nand multiple worker groups."];   split_comm[shape=box, label="Split MPI-communicator\ninto a master rank\nand multiple worker groups."];
   if_master [shape=diamond, label="Master rank?"];   if_master [shape=diamond, label="Master rank?"];
-  Start -> split_comm -> if_master;+  start -> split_comm -> if_master;
      
   if_master -> m1 [label="yes", weight=0];   if_master -> m1 [label="yes", weight=0];
Line 29: Line 27:
   w2[label="CALL execute(command, report)"];   w2[label="CALL execute(command, report)"];
   w3[label="Receive command (blocking)"];   w3[label="Receive command (blocking)"];
-  w1 -> w2 -> w3 [weight=10];+  w1 -> w2 -> w3;
   w3 -> w1 [weight=0];   w3 -> w1 [weight=0];
 } }
Line 35: Line 33:
 subgraph hidden1 { subgraph hidden1 {
   rank="same";   rank="same";
-  w1 -> m1 [label="MPI", color=red, minlen=3.5, weight=0];+  w1 -> m1 [label="MPI", color=red, minlen=3.5];
 } }
  
Line 42: Line 40:
   label="lalal";   label="lalal";
   rank="same";   rank="same";
-  w3 -> m3 [label="MPI", dir=back, color=green, minlen=3.5, weight=0];+  w3 -> m3 [label="MPI", dir=back, color=green, minlen=3.5];
 } }
  
 } }
 </graphviz> </graphviz>
code/run_swarm.txt · Last modified: 2020/08/21 10:15 by 127.0.0.1