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
code:run_swarm [2015/01/20 20:59] – code:swarm renamed to code:run_swarm oschuettcode:run_swarm [2020/08/21 10:15] (current) – external edit 127.0.0.1
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]; +  node [shape=box, width=3.5];   
-  if_master -> w1 [label="no",  weight=0]; +  if_master -> m1 [label="yes"]; 
-   +  if_master -> w1 [label="no"]; 
-  node [shape=box, width=3.5]; +
-  +
 subgraph cluster_m { subgraph cluster_m {
   color = blue;   color = blue;
-  label = "Master";+  label = <<u>Master</u>>;
   m1[label="Receive report (blocking)"];   m1[label="Receive report (blocking)"];
   m2[label="CALL steer(report, command)"];   m2[label="CALL steer(report, command)"];
   m3[label="Send new command as reply"];   m3[label="Send new command as reply"];
   m1 -> m2 -> m3;   m1 -> m2 -> m3;
-  m3 -> m1 [weight=0];+  m3:w -> m1:w [weight=0];
 } }
  
 subgraph cluster_w { subgraph cluster_w {
-  label = "Worker";+  label = <<u>Worker</u>>;
   color = blue;   color = blue;
   w1[label="Send report"];   w1[label="Send report"];
   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; +  w1 -> w2 -> w3 [dir=back]
-  w3 -> w1 [weight=0];+  w3:e -> w1:e [dir=back, weight=0];
 } }
  
-subgraph hidden1 { +w1 -> m1 [label="MPI", color=red,   minlen=3.5, weight=0]; 
-  rank="same"; +m3 -> w3 [label="MPI", color=green, minlen=3.5, weight=0];
-  w1 -> m1 [label="MPI", color=red, minlen=3.5]; +
-+
- +
-subgraph hidden2 { +
-  color=blue; +
-  label="lalal"; +
-  rank="same"; +
-  w3 -> m3 [label="MPI", dir=back, color=green, minlen=3.5]; +
-}+
  
 } }
 </graphviz> </graphviz>
code/run_swarm.1421787584.txt.gz · Last modified: 2020/08/21 10:14 (external edit)