Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert more simdag tests
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 18 Feb 2021 08:03:33 +0000 (09:03 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 18 Feb 2021 08:11:23 +0000 (09:11 +0100)
MANIFEST.in
examples/platforms/ptask_L07.xml
teshsuite/models/ptask_L07/ptask_L07.cpp
teshsuite/models/ptask_L07/ptask_L07.tesh
teshsuite/simdag/CMakeLists.txt
teshsuite/simdag/comm-mxn-all2all/comm-mxn-all2all.c [deleted file]
teshsuite/simdag/comm-mxn-all2all/comm-mxn-all2all.tesh [deleted file]
teshsuite/simdag/comm-mxn-independent/comm-mxn-independent.c [deleted file]
teshsuite/simdag/comm-mxn-independent/comm-mxn-independent.tesh [deleted file]
teshsuite/simdag/comm-mxn-scatter/comm-mxn-scatter.c [deleted file]
teshsuite/simdag/comm-mxn-scatter/comm-mxn-scatter.tesh [deleted file]

index e5ef95f..cabc1dc 100644 (file)
@@ -770,12 +770,6 @@ include teshsuite/simdag/basic5/basic5.c
 include teshsuite/simdag/basic5/basic5.tesh
 include teshsuite/simdag/basic6/basic6.c
 include teshsuite/simdag/basic6/basic6.tesh
-include teshsuite/simdag/comm-mxn-all2all/comm-mxn-all2all.c
-include teshsuite/simdag/comm-mxn-all2all/comm-mxn-all2all.tesh
-include teshsuite/simdag/comm-mxn-independent/comm-mxn-independent.c
-include teshsuite/simdag/comm-mxn-independent/comm-mxn-independent.tesh
-include teshsuite/simdag/comm-mxn-scatter/comm-mxn-scatter.c
-include teshsuite/simdag/comm-mxn-scatter/comm-mxn-scatter.tesh
 include teshsuite/simdag/comm-p2p-latency-bound/comm-p2p-latency-bound.c
 include teshsuite/simdag/comm-p2p-latency-bound/comm-p2p-latency-bound.tesh
 include teshsuite/simdag/flatifier/bogus_missing_gateway.tesh
index 93e6999..09b540b 100644 (file)
@@ -4,23 +4,54 @@
   <zone  id="AS0"  routing="Full">
     <host id="cpu0" speed="1f" />
     <host id="cpu1" speed="1f" />
-       <host id="cpu2" speed="2f" />
+    <host id="cpu2" speed="1f"/>
+    <host id="cpu3" speed="1f"/>
+       <host id="cpu4" speed="1f" />
+       <host id="cpu5" speed="2f" />
 
     <link id="switch" bandwidth="2Bps" latency="1s" sharing_policy="FATPIPE"/>
-    <link id="link0" bandwidth="1Bps" latency="500ms" sharing_policy="SHARED" />
-    <link id="link1" bandwidth="1Bps" latency="500ms" sharing_policy="SHARED" />
-    <link id="link2" bandwidth="1Bps" latency="500ms" sharing_policy="FATPIPE" />
+    <link id="link0" bandwidth="1Bps" latency="500ms" sharing_policy="SHARED"/>
+    <link id="link1" bandwidth="1Bps" latency="500ms" sharing_policy="SHARED"/>
+    <link id="link2" bandwidth="1Bps" latency="500ms" sharing_policy="SHARED"/>
+    <link id="link3" bandwidth="1Bps" latency="500ms" sharing_policy="SHARED"/>
+    <link id="link4" bandwidth="1Bps" latency="500ms" sharing_policy="FATPIPE" />
 
     <route src="cpu0" dst="cpu1">
-      <link_ctn id="link0" />
+      <link_ctn id="link0"/>
+      <link_ctn id="switch"/>
+      <link_ctn id="link1"/>
     </route>
     <route src="cpu0" dst="cpu2">
-      <link_ctn id="link2" />
+      <link_ctn id="link0"/>
+      <link_ctn id="switch"/>
+      <link_ctn id="link2"/>
+    </route>
+    <route src="cpu0" dst="cpu3">
+      <link_ctn id="link0"/>
+      <link_ctn id="switch"/>
+      <link_ctn id="link3"/>
     </route>
     <route src="cpu1" dst="cpu2">
+      <link_ctn id="link1"/>
+      <link_ctn id="switch"/>
+      <link_ctn id="link2"/>
+    </route>
+    <route src="cpu1" dst="cpu3">
+      <link_ctn id="link1"/>
+      <link_ctn id="switch"/>
+      <link_ctn id="link3"/>
+    </route>
+    <route src="cpu2" dst="cpu3">
+      <link_ctn id="link2"/>
+      <link_ctn id="switch"/>
+      <link_ctn id="link3"/>
+    </route>
+
+    <route src="cpu0" dst="cpu4">
       <link_ctn id="link0" />
-      <link_ctn id="switch" />
-      <link_ctn id="link1" />
+    </route>
+    <route src="cpu0" dst="cpu5">
+      <link_ctn id="link4" />
     </route>
   </zone>
 </platform>
index c171005..750ce1f 100644 (file)
@@ -51,7 +51,7 @@ static void main_dispatcher()
   XBT_INFO("Should be done in exactly one second.");
   start_time = e->get_clock();
   sg4::Exec::init()->set_flops_amounts(std::vector<double>({1.0, 1.0}))
-                   ->set_hosts(std::vector<sg4::Host*>({hosts[1], hosts[2]}))
+                   ->set_hosts(std::vector<sg4::Host*>({hosts[0], hosts[5]}))
                    ->wait();
   end_time = e->get_clock();
   XBT_INFO("Actual result: computing 2 flops on 2 heterogeneous hosts takes %.2f seconds.", end_time - start_time);
@@ -64,7 +64,7 @@ static void main_dispatcher()
   XBT_INFO("Have to send 1B from one host to another at 1Bps with a latency of 500ms.");
   XBT_INFO("Should be done in 1.5 seconds (500ms latency + 1s transfert).");
   start_time = e->get_clock();
-  sg4::Comm::sendto_async(hosts[0], hosts[1], 1.0)->wait();
+  sg4::Comm::sendto_async(hosts[0], hosts[4], 1.0)->wait();
   end_time = e->get_clock();
   XBT_INFO("Actual result: sending 1 byte on a shared link at 1Bps + 500ms takes %.2f seconds.", end_time - start_time);
   XBT_INFO("\n");
@@ -76,7 +76,7 @@ static void main_dispatcher()
   XBT_INFO("Have to send 1B from one host to another at 1Bps with a latency of 500ms.");
   XBT_INFO("Should be done in 1.5 seconds (500ms latency + 1s transfert).");
   start_time = e->get_clock();
-  sg4::Comm::sendto_async(hosts[0], hosts[2], 1.0)->wait();
+  sg4::Comm::sendto_async(hosts[0], hosts[5], 1.0)->wait();
   end_time = e->get_clock();
   XBT_INFO("Actual result: sending 1 byte on a fatpipe link at 1Bps + 500ms takes %.2f seconds.", end_time - start_time);
   XBT_INFO("\n");
@@ -88,7 +88,7 @@ static void main_dispatcher()
   XBT_INFO("Have to send 1B from one host to another at 1Bps with a latency of 2 x 500ms + 1s.");
   XBT_INFO("Should be done in 3 seconds (2 x 500ms + 1s latency + 1s transfert).");
   start_time = e->get_clock();
-  sg4::Comm::sendto_async(hosts[1], hosts[2], 1.0)->wait();
+  sg4::Comm::sendto_async(hosts[0], hosts[1], 1.0)->wait();
   end_time = e->get_clock();
   XBT_INFO("Actual result: sending 1 byte on a 3-link route at 1Bps + 2,500ms takes %.2f seconds.", end_time - start_time);
   XBT_INFO("\n");
@@ -100,8 +100,8 @@ static void main_dispatcher()
    XBT_INFO("Have to send 2 x 1B from one host to another at 1Bps with a latency of 500ms.");
    XBT_INFO("Should be done in 2.5 seconds (500ms latency + 2s transfert).");
    start_time = e->get_clock();
-   sg4::CommPtr c1 = sg4::Comm::sendto_async(hosts[0], hosts[1], 1.0);
-   sg4::CommPtr c2 = sg4::Comm::sendto_async(hosts[0], hosts[1], 1.0);
+   sg4::CommPtr c1 = sg4::Comm::sendto_async(hosts[0], hosts[4], 1.0);
+   sg4::CommPtr c2 = sg4::Comm::sendto_async(hosts[0], hosts[4], 1.0);
    c1->wait();
    c2->wait();
    end_time = e->get_clock();
@@ -115,8 +115,8 @@ static void main_dispatcher()
    XBT_INFO("Have to send 2 x 1B from one host to another at 1Bps with a latency of 500ms.");
    XBT_INFO("Should be done in 1.5 seconds (500ms latency + 1s transfert).");
    start_time = e->get_clock();
-   c1 = sg4::Comm::sendto_async(hosts[0], hosts[2], 1.0);
-   c2 = sg4::Comm::sendto_async(hosts[0], hosts[2], 1.0);
+   c1 = sg4::Comm::sendto_async(hosts[0], hosts[5], 1.0);
+   c2 = sg4::Comm::sendto_async(hosts[0], hosts[5], 1.0);
    c1->wait();
    c2->wait();
    end_time = e->get_clock();
@@ -130,8 +130,8 @@ static void main_dispatcher()
    XBT_INFO("Have to send 2 x 1B from one host to another at 1Bps with a latency of 2 x 500ms + 1s.");
    XBT_INFO("Should be done in 4 seconds (2 x 500ms + 1s latency + 2s transfert).");
    start_time = e->get_clock();
-   c1 = sg4::Comm::sendto_async(hosts[1], hosts[2], 1.0);
-   c2 = sg4::Comm::sendto_async(hosts[1], hosts[2], 1.0);
+   c1 = sg4::Comm::sendto_async(hosts[0], hosts[1], 1.0);
+   c2 = sg4::Comm::sendto_async(hosts[0], hosts[1], 1.0);
    c1->wait();
    c2->wait();
    end_time = e->get_clock();
@@ -146,8 +146,8 @@ static void main_dispatcher()
    XBT_INFO("Have to send 1B between two hosts in each direction at 1Bps with a latency of 500ms.");
    XBT_INFO("Should be done in 2.5 seconds (500ms latency + 2s transfert).");
    start_time = e->get_clock();
-   c1 = sg4::Comm::sendto_async(hosts[0], hosts[1], 1.0);
-   c2 = sg4::Comm::sendto_async(hosts[1], hosts[0], 1.0);
+   c1 = sg4::Comm::sendto_async(hosts[0], hosts[4], 1.0);
+   c2 = sg4::Comm::sendto_async(hosts[4], hosts[0], 1.0);
    c1->wait();
    c2->wait();
    end_time = e->get_clock();
@@ -162,8 +162,8 @@ static void main_dispatcher()
    XBT_INFO("Have to send 1B between two hosts in each direction at 1Bps with a latency of 500ms.");
    XBT_INFO("Should be done in 1.5 seconds (500ms latency + 1s transfert).");
    start_time = e->get_clock();
-   c1 = sg4::Comm::sendto_async(hosts[0], hosts[2], 1.0);
-   c2 = sg4::Comm::sendto_async(hosts[2], hosts[0], 1.0);
+   c1 = sg4::Comm::sendto_async(hosts[0], hosts[5], 1.0);
+   c2 = sg4::Comm::sendto_async(hosts[5], hosts[0], 1.0);
    c1->wait();
    c2->wait();
    end_time = e->get_clock();
@@ -178,14 +178,75 @@ static void main_dispatcher()
    XBT_INFO("Have to send 1B between two hosts in each direction at 1Bps with a latency of 2 x 500ms + 1s.");
    XBT_INFO("Should be done in 4 seconds (2 x 500ms + 1s latency + 2s transfert).");
    start_time = e->get_clock();
-   c1 = sg4::Comm::sendto_async(hosts[1], hosts[2], 1.0);
-   c2 = sg4::Comm::sendto_async(hosts[2], hosts[1], 1.0);
+   c1 = sg4::Comm::sendto_async(hosts[0], hosts[1], 1.0);
+   c2 = sg4::Comm::sendto_async(hosts[1], hosts[0], 1.0);
    c1->wait();
    c2->wait();
    end_time = e->get_clock();
    XBT_INFO("Actual result: sending 1 byte in both directions on a 3-link route at 1Bps + 2,500ms takes %.2f seconds.",
              end_time - start_time);
    XBT_INFO("\n");
+
+   sg4::this_actor::sleep_for(5);
+
+   XBT_INFO("TEST: 4-host parallel communication with independent transfers.");
+   XBT_INFO("------------------------------------------------------------");
+   XBT_INFO("'cpu0' sends 1B to 'cpu1' and 'cpu2' sends 1B to 'cpu3'. The only shared link is the fatpipe switch.");
+   XBT_INFO("Should be done in 3 seconds (2 x 500ms + 1s latency + 1s transfert).");
+   start_time = e->get_clock();
+   sg4::Exec::init()->set_bytes_amounts(std::vector<double>({0.0, 1.0, 0.0, 0.0,
+                                                             0.0, 0.0, 0.0, 0.0,
+                                                             0.0, 0.0, 0.0, 1.0,
+                                                             0.0, 0.0, 0.0, 0.0 }))
+                    ->set_hosts(std::vector<sg4::Host*>({hosts[0], hosts[1], hosts[2], hosts[3]}))
+                    ->wait();
+   end_time = e->get_clock();
+   XBT_INFO("Actual result: sending 2 x 1 byte in a parallel communication without interference takes %.2f seconds.",
+             end_time - start_time);
+   XBT_INFO("\n");
+
+   sg4::this_actor::sleep_for(5);
+
+   XBT_INFO("TEST: 4-host parallel communication with scatter pattern.");
+   XBT_INFO("------------------------------------------------------------");
+   XBT_INFO("'cpu0' sends 1B to 'cpu1', 2B to 'cpu2' and 3B to 'cpu3'.");
+   XBT_INFO("Should be done in 8 seconds: 2 x 500ms + 1s of initial latency and :");
+   XBT_INFO(" - For 3 seconds, three flows share a link to transfer 3 x 1B. 'cpu1' received its payload");
+   XBT_INFO(" - For 2 seconds, two lows share a link to transfer 1 x 1B. 'cpu2' received is payload");
+   XBT_INFO(" - For 1 second, one flow has the full bandwidth to transfer 1B. 'cpu3' received is payload");
+
+   start_time = e->get_clock();
+   sg4::Exec::init()->set_bytes_amounts(std::vector<double>({0.0, 1.0, 2.0, 3.0,
+                                                             0.0, 0.0, 0.0, 0.0,
+                                                             0.0, 0.0, 0.0, 0.0,
+                                                             0.0, 0.0, 0.0, 0.0 }))
+                    ->set_hosts(std::vector<sg4::Host*>({hosts[0], hosts[1], hosts[2], hosts[3]}))
+                    ->wait();
+   end_time = e->get_clock();
+   XBT_INFO("Actual result: scattering an increasing number of bytes to 3 hosts takes %.2f seconds.",
+             end_time - start_time);
+   XBT_INFO("\n");
+
+   sg4::this_actor::sleep_for(5);
+
+   XBT_INFO("TEST: 4-host parallel communication with all-to-all pattern.");
+   XBT_INFO("------------------------------------------------------------");
+   XBT_INFO("Each host sends 1B to every other hosts.");
+   XBT_INFO("Should be done in 8 seconds: 2 x 500ms + 1s of initial latency and 6 seconds for transfer");
+   XBT_INFO("Each SHARED link is traversed by 6 flows (3 in and 3 out). ");
+   XBT_INFO("Each 1B transfer thus takes 6 seconds on a 1Bps link");
+
+   start_time = e->get_clock();
+   sg4::Exec::init()->set_bytes_amounts(std::vector<double>({0.0, 1.0, 1.0, 1.0,
+                                                             1.0, 0.0, 1.0, 1.0,
+                                                             1.0, 1.0, 0.0, 1.0,
+                                                             1.0, 1.0, 1.0, 0.0 }))
+                    ->set_hosts(std::vector<sg4::Host*>({hosts[0], hosts[1], hosts[2], hosts[3]}))
+                    ->wait();
+   end_time = e->get_clock();
+   XBT_INFO("Actual result: 1-byte all-too-all in a parallel communication takes %.2f seconds.",
+             end_time - start_time);
+   XBT_INFO("\n");
 }
 
 int main(int argc, char** argv)
index e6347a0..7c0c9c1 100644 (file)
@@ -85,3 +85,29 @@ $ ${bindir:=.}/ptask_L07 --cfg=host/model:ptask_L07 ${platfdir}/ptask_L07.xml --
 > Have to send 1B between two hosts in each direction at 1Bps with a latency of 2 x 500ms + 1s.
 > Should be done in 4 seconds (2 x 500ms + 1s latency + 2s transfert).
 > Actual result: sending 1 byte in both directions on a 3-link route at 1Bps + 2,500ms takes 4.00 seconds.
+> 
+> 
+> TEST: 4-host parallel communication with independent transfers.
+> ------------------------------------------------------------
+> 'cpu0' sends 1B to 'cpu1' and 'cpu2' sends 1B to 'cpu3'. The only shared link is the fatpipe switch.
+> Should be done in 3 seconds (2 x 500ms + 1s latency + 1s transfert).
+> Actual result: sending 2 x 1 byte in a parallel communication without interference takes 3.00 seconds.
+>
+> 
+> TEST: 4-host parallel communication with scatter pattern.
+> ------------------------------------------------------------
+> 'cpu0' sends 1B to 'cpu1', 2B to 'cpu2' and 3B to 'cpu3'.
+> Should be done in 8 seconds: 2 x 500ms + 1s of initial latency and :
+>  - For 3 seconds, three flows share a link to transfer 3 x 1B. 'cpu1' received its payload
+>  - For 2 seconds, two lows share a link to transfer 1 x 1B. 'cpu2' received is payload
+>  - For 1 second, one flow has the full bandwidth to transfer 1B. 'cpu3' received is payload
+> Actual result: scattering an increasing number of bytes to 3 hosts takes 8.00 seconds.
+>
+>
+> TEST: 4-host parallel communication with all-to-all pattern.
+> ------------------------------------------------------------
+> Each host sends 1B to every other hosts.
+> Should be done in 8 seconds: 2 x 500ms + 1s of initial latency and 6 seconds for transfer
+> Each SHARED link is traversed by 6 flows (3 in and 3 out). 
+> Each 1B transfer thus takes 6 seconds on a 1Bps link
+> Actual result: 1-byte all-too-all in a parallel communication takes 8.00 seconds.
index 767edc5..9aa903e 100644 (file)
@@ -1,6 +1,4 @@
-foreach(x availability basic0 basic1 basic3 basic4 basic5 basic6
-          comm-mxn-all2all comm-mxn-independent comm-mxn-scatter
-          comm-p2p-latency-bound incomplete)
+foreach(x availability basic0 basic1 basic3 basic4 basic5 basic6 comm-p2p-latency-bound incomplete)
   add_executable       (${x}  EXCLUDE_FROM_ALL ${x}/${x}.c)
   target_link_libraries(${x}  simgrid)
   set_target_properties(${x}  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
@@ -58,9 +56,7 @@ set(txt_files     ${txt_files}      ${CMAKE_CURRENT_SOURCE_DIR}/platforms/carol.
                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/link.fail
                                     ${CMAKE_CURRENT_SOURCE_DIR}/platforms/link.lat                         PARENT_SCOPE)
 
-foreach(x availability basic0 basic1 basic3 basic4 basic5 basic6
-          comm-mxn-all2all comm-mxn-independent comm-mxn-scatter flatifier
-          comm-p2p-latency-bound incomplete)
+foreach(x availability basic0 basic1 basic3 basic4 basic5 basic6 flatifier comm-p2p-latency-bound incomplete)
   ADD_TESH(tesh-simdag-${x} --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/${x} --setenv srcdir=${CMAKE_HOME_DIRECTORY} --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/${x} ${x}.tesh)
 endforeach()
 
diff --git a/teshsuite/simdag/comm-mxn-all2all/comm-mxn-all2all.c b/teshsuite/simdag/comm-mxn-all2all/comm-mxn-all2all.c
deleted file mode 100644 (file)
index e5a27be..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Latency tests                                                            */
-
-/* Copyright (c) 2007-2021. The SimGrid Team.
- * All rights reserved.                                                     */
-
-/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
-
-#include "simgrid/simdag.h"
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(comm_mxn_all2all, sd, "SimDag test All2All");
-
-/*
- * intra communication test
- * All2All
- *
- * send 1 byte from all to all
- * + 2 secs latency
- * should be 8  (platform_4p_1switch.xml)
- */
-
-int main(int argc, char **argv)
-{
-  double communication_amount[] = { 0.0, 1.0, 1.0, 1.0,
-                                    1.0, 0.0, 1.0, 1.0,
-                                    1.0, 1.0, 0.0, 1.0,
-                                    1.0, 1.0, 1.0, 0.0 };
-
-  SD_init(&argc, argv);
-  SD_create_environment(argv[1]);
-
-  SD_task_t task = SD_task_create("All2all task", NULL, 1.0);
-
-  sg_host_t *hosts = sg_host_list();
-  SD_task_schedule(task, 4, hosts, SD_SCHED_NO_COST, communication_amount, -1.0);
-  xbt_free(hosts);
-
-  SD_simulate(-1.0);
-
-  XBT_INFO("%g", SD_get_clock());
-
-  SD_task_destroy(task);
-
-  return 0;
-}
diff --git a/teshsuite/simdag/comm-mxn-all2all/comm-mxn-all2all.tesh b/teshsuite/simdag/comm-mxn-all2all/comm-mxn-all2all.tesh
deleted file mode 100644 (file)
index 2fc2682..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-p all 2 all test, only fat pipe switch is used concurrently
-! output sort
-
-$ ${bindir:=.}/comm-mxn-all2all ../platforms/platform_4p_1switch.xml --cfg=path:${srcdir} --log=sd_kernel.thres=warning "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
-> [  0.000000] (0:maestro@) Switching to the L07 model to handle parallel tasks.
-> [  8.000000] (0:maestro@) 8
diff --git a/teshsuite/simdag/comm-mxn-independent/comm-mxn-independent.c b/teshsuite/simdag/comm-mxn-independent/comm-mxn-independent.c
deleted file mode 100644 (file)
index fa01120..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Latency tests                                                            */
-
-/* Copyright (c) 2007-2021. The SimGrid Team.
- * All rights reserved.                                                     */
-
-/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
-
-#include "simgrid/simdag.h"
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(comm_mxn_independent, sd, "SimDag test independent communications");
-
-/*
- * intra communication test
- * independent communication
- *
- * 0 -> 1
- * 2 -> 3
- * shared is only switch which is fat pipe
- * should be 1 + 2 latency = 3
- */
-
-int main(int argc, char **argv)
-{
-  double communication_amount[] = { 0.0, 1.0, 0.0, 0.0,
-                                    0.0, 0.0, 0.0, 0.0,
-                                    0.0, 0.0, 0.0, 1.0,
-                                    0.0, 0.0, 0.0, 0.0 };
-
-  SD_init(&argc, argv);
-  SD_create_environment(argv[1]);
-
-  SD_task_t task = SD_task_create("Comm 1", NULL, 1.0);
-
-  sg_host_t *hosts = sg_host_list();
-  SD_task_schedule(task, 4, hosts, SD_SCHED_NO_COST, communication_amount, -1.0);
-  xbt_free(hosts);
-
-  SD_simulate(-1.0);
-
-  XBT_INFO("%g", SD_get_clock());
-
-  SD_task_destroy(task);
-
-  return 0;
-}
diff --git a/teshsuite/simdag/comm-mxn-independent/comm-mxn-independent.tesh b/teshsuite/simdag/comm-mxn-independent/comm-mxn-independent.tesh
deleted file mode 100644 (file)
index ac52c7f..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-p sending on different paths test
-! output sort
-
-$ ${bindir:=.}/comm-mxn-independent ../platforms/platform_4p_1switch.xml --cfg=path:${srcdir} --log=sd_kernel.thres=warning "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
-> [  0.000000] (0:maestro@) Switching to the L07 model to handle parallel tasks.
-> [  3.000000] (0:maestro@) 3
diff --git a/teshsuite/simdag/comm-mxn-scatter/comm-mxn-scatter.c b/teshsuite/simdag/comm-mxn-scatter/comm-mxn-scatter.c
deleted file mode 100644 (file)
index 4ed17df..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Latency tests                                                            */
-
-/* Copyright (c) 2007-2021. The SimGrid Team.
- * All rights reserved.                                                     */
-
-/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
-
-#include "simgrid/simdag.h"
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(comm_mxn_scatter, sd, "SimDag test scatter");
-
-/*
- * intra communication test 1
- * scatter
- *
- * start: 1 2 3 (each having 1/3 of the bandwidth)
- * after 3 sec: 0 1 2 (having 1/2 of the bandwidth)
- * after another 2 sec: 0 0 1 (having all the bandwidth)
- * -> finished after 1 sec
- * time to send: 6 + latency at the beginning: 0.5 + 1 + 0.5
- */
-
-int main(int argc, char **argv)
-{
-  double communication_amount[] = { 0.0, 1.0, 2.0, 3.0,
-                                    0.0, 0.0, 0.0, 0.0,
-                                    0.0, 0.0, 0.0, 0.0,
-                                    0.0, 0.0, 0.0, 0.0 };
-
-  SD_init(&argc, argv);
-  SD_create_environment(argv[1]);
-
-  SD_task_t task = SD_task_create("Scatter task", NULL, 1.0);
-
-  sg_host_t *hosts = sg_host_list();
-  SD_task_schedule(task, 4, hosts, SD_SCHED_NO_COST, communication_amount, -1.0);
-  xbt_free(hosts);
-
-  SD_simulate(-1.0);
-
-  XBT_INFO("%g", SD_get_clock());
-
-  SD_task_destroy(task);
-
-  return 0;
-}
diff --git a/teshsuite/simdag/comm-mxn-scatter/comm-mxn-scatter.tesh b/teshsuite/simdag/comm-mxn-scatter/comm-mxn-scatter.tesh
deleted file mode 100644 (file)
index bbe9f04..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-p scatter test
-! output sort
-
-$ ${bindir:=.}/comm-mxn-scatter ../platforms/platform_4p_1switch.xml --cfg=path:${srcdir} --log=sd_kernel.thres=warning "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
-> [  0.000000] (0:maestro@) Switching to the L07 model to handle parallel tasks.
-> [  8.000000] (0:maestro@) 8