Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
update tests and examples after recent changes
authorSUTER Frederic <frederic.suter@cc.in2p3.fr>
Thu, 23 Dec 2021 15:02:27 +0000 (16:02 +0100)
committerSUTER Frederic <frederic.suter@cc.in2p3.fr>
Thu, 23 Dec 2021 15:02:27 +0000 (16:02 +0100)
examples/cpp/dag-comm/s4u-dag-comm.cpp
examples/cpp/dag-from-dot/s4u_dag-from-dot.cpp
examples/cpp/dag-from-dot/s4u_dag-from-dot.tesh
teshsuite/s4u/dag-incomplete-simulation/dag-incomplete-simulation.cpp

index b5982ae..b7a90ea 100644 (file)
@@ -49,9 +49,9 @@ int main(int argc, char* argv[])
 
   // Schedule the different activities
   parent->set_host(tremblay);
-  transfert->set_from(tremblay);
+  transfert->set_source(tremblay);
   child->set_host(jupiter);
-  transfert->set_to(jupiter);
+  transfert->set_destination(jupiter);
 
   e.run();
 
index deb430e..9229601 100644 (file)
@@ -48,7 +48,7 @@ int main(int argc, char** argv)
     if (comm != nullptr) {
       auto pred = dynamic_cast<simgrid::s4u::Exec*>(comm->get_parent().get());
       auto succ = dynamic_cast<simgrid::s4u::Exec*>(comm->get_child().get());
-      comm->set_from(pred->get_host())->set_to(succ->get_host());
+      comm->set_source(pred->get_host())->set_destination(succ->get_host());
     }
   }
 
@@ -64,7 +64,8 @@ int main(int argc, char** argv)
     }
     auto* comm = dynamic_cast<simgrid::s4u::Comm*>(a.get());
     if (comm != nullptr) {
-      XBT_INFO("%s", comm->get_cname());
+      XBT_INFO("[%f->%f] '%s' transferred from %s to %s", comm->get_start_time(), comm->get_finish_time(),
+               comm->get_cname(), comm->get_source()->get_cname(), comm->get_destination()->get_cname());
     }
   }
   return 0;
index 349a97a..190597e 100644 (file)
@@ -36,12 +36,12 @@ $ ${bindir:=.}/s4u_dag-from-dot --log=no_loc ${platfdir}/cluster_backbone.xml ${
 > [110.047415] [dag_from_dot/INFO] [70.039443->80.039443] '7' executed on node-16.simgrid.org
 > [110.047415] [dag_from_dot/INFO] [80.047414->90.047415] '8' executed on node-17.simgrid.org
 > [110.047415] [dag_from_dot/INFO] [90.047415->100.047415] '9' executed on node-18.simgrid.org
-> [110.047415] [dag_from_dot/INFO] 0->1
-> [110.047415] [dag_from_dot/INFO] 1->2
-> [110.047415] [dag_from_dot/INFO] 2->3
-> [110.047415] [dag_from_dot/INFO] 4->5
-> [110.047415] [dag_from_dot/INFO] 6->7
-> [110.047415] [dag_from_dot/INFO] 7->8
-> [110.047415] [dag_from_dot/INFO] 7->end
-> [110.047415] [dag_from_dot/INFO] root->5
+> [110.047415] [dag_from_dot/INFO] [10.000000->10.007889] '0->1' transferred from node-1.simgrid.org to node-10.simgrid.org
+> [110.047415] [dag_from_dot/INFO] [20.007889->20.015777] '1->2' transferred from node-10.simgrid.org to node-11.simgrid.org
+> [110.047415] [dag_from_dot/INFO] [30.015777->30.023666] '2->3' transferred from node-11.simgrid.org to node-12.simgrid.org
+> [110.047415] [dag_from_dot/INFO] [50.023666->50.031555] '4->5' transferred from node-13.simgrid.org to node-14.simgrid.org
+> [110.047415] [dag_from_dot/INFO] [70.031555->70.039443] '6->7' transferred from node-15.simgrid.org to node-16.simgrid.org
+> [110.047415] [dag_from_dot/INFO] [80.039443->80.047414] '7->8' transferred from node-16.simgrid.org to node-17.simgrid.org
+> [110.047415] [dag_from_dot/INFO] [80.039443->80.129922] '7->end' transferred from node-16.simgrid.org to node-0.simgrid.org
+> [110.047415] [dag_from_dot/INFO] [0.000000->0.090396] 'root->5' transferred from node-0.simgrid.org to node-14.simgrid.org
 > [110.047415] [dag_from_dot/INFO] [100.047415->110.047415] 'end' executed on node-0.simgrid.org
index e1823d6..85ed903 100644 (file)
@@ -37,8 +37,8 @@ int main(int argc, char** argv)
   C->add_successor(D);
 
   Init->set_host(host);
-  A->set_from(host)->set_to(host);
-  D->set_from(host)->set_to(host);
+  A->set_source(host)->set_destination(host);
+  D->set_source(host)->set_destination(host);
 
   /* let's launch the simulation! */
   e.run();