Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a platform with tag config and explain how to change smpi factor.
authornavarro <navarro@caraja.(none)>
Mon, 16 Jan 2012 17:56:24 +0000 (18:56 +0100)
committernavarro <navarro@caraja.(none)>
Mon, 16 Jan 2012 17:56:51 +0000 (18:56 +0100)
examples/platforms/tag_config.xml [new file with mode: 0644]
src/surf/surf_config.c

diff --git a/examples/platforms/tag_config.xml b/examples/platforms/tag_config.xml
new file mode 100644 (file)
index 0000000..1c1827a
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version='1.0'?>
+<!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid.dtd">
+<platform version="3">
+       
+<config id="General">
+       <prop id="maxmin/precision" value="0.000010"></prop>
+       <prop id="cpu/optim" value="TI"></prop>
+       <prop id="workstation/model" value="compound"></prop>
+       <prop id="network/model" value="SMPI"></prop>
+       <prop id="path" value="~/"></prop>
+       <prop id="smpi/bw_factor" value="65472:0.940694;15424:0.697866;9376:0.58729"></prop>
+</config>
+       
+<AS  id="AS0"  routing="Full">
+   <host id="bob" power="1000000000"/>
+   <host id="alice" power="500000000"/>
+   <link id="link1" bandwidth="125000000" latency="5E-5"/>
+   <link id="link2" bandwidth="125000000" latency="5E-5"/>
+   <link id="link3" bandwidth="125000000" latency="5E-5"/>
+   
+   <route src="bob" dst="alice" symmetrical="YES">
+     <link_ctn id="link1"/>
+        <link_ctn id="link2"/>
+        <link_ctn id="link3"/>
+   </route>
+</AS>
+</platform>
index c8641fb..4eb17cf 100644 (file)
@@ -534,6 +534,11 @@ void surf_config_init(int *argc, char **argv)
                      xbt_cfgelm_double, &default_threshold, 1, 1, NULL,
                      NULL);
 
                      xbt_cfgelm_double, &default_threshold, 1, 1, NULL,
                      NULL);
 
+    //For smpi/bw_factor and smpi/lat_factor
+    //Default value have to be "threshold0:value0;threshold1:value1;...;thresholdN:valueN"
+    //test is if( size >= thresholdN ) return valueN;
+    //Values can be modified with command line --cfg=smpi/bw_factor:"threshold0:value0;threshold1:value1;...;thresholdN:valueN"
+    // or with tag config put line <prop id="smpi/bw_factor" value="threshold0:value0;threshold1:value1;...;thresholdN:valueN"></prop>
     xbt_cfg_register(&_surf_cfg_set, "smpi/bw_factor",
                      "Bandwidth factors for smpi.",
                      xbt_cfgelm_string, NULL, 1, 1, NULL,
     xbt_cfg_register(&_surf_cfg_set, "smpi/bw_factor",
                      "Bandwidth factors for smpi.",
                      xbt_cfgelm_string, NULL, 1, 1, NULL,