From bea71eb0cdea9abd9b6476bdaaecd26179d58cd8 Mon Sep 17 00:00:00 2001 From: navarro Date: Mon, 16 Jan 2012 18:56:24 +0100 Subject: [PATCH] Add a platform with tag config and explain how to change smpi factor. --- examples/platforms/tag_config.xml | 28 ++++++++++++++++++++++++++++ src/surf/surf_config.c | 5 +++++ 2 files changed, 33 insertions(+) create mode 100644 examples/platforms/tag_config.xml diff --git a/examples/platforms/tag_config.xml b/examples/platforms/tag_config.xml new file mode 100644 index 0000000000..1c1827aa45 --- /dev/null +++ b/examples/platforms/tag_config.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/surf/surf_config.c b/src/surf/surf_config.c index c8641fb619..4eb17cfad1 100644 --- a/src/surf/surf_config.c +++ b/src/surf/surf_config.c @@ -534,6 +534,11 @@ void surf_config_init(int *argc, char **argv) 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 xbt_cfg_register(&_surf_cfg_set, "smpi/bw_factor", "Bandwidth factors for smpi.", xbt_cfgelm_string, NULL, 1, 1, NULL, -- 2.20.1