From: Martin Quinson Date: Sat, 5 Apr 2014 20:28:03 +0000 (+0200) Subject: requests the flatifier to display the amount of core if not equal to 1 X-Git-Tag: v3_11~152 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d47d157d7ca07e8253323fae04795fdbace9ae7c requests the flatifier to display the amount of core if not equal to 1 Bad news: this commit does not break the tests, meaning that we have no flatifying test that involves multi-cores... --- diff --git a/teshsuite/simdag/platforms/flatifier.c b/teshsuite/simdag/platforms/flatifier.c index b47590261d..e0762b0f07 100644 --- a/teshsuite/simdag/platforms/flatifier.c +++ b/teshsuite/simdag/platforms/flatifier.c @@ -147,6 +147,9 @@ int main(int argc, char **argv) SD_workstation_get_name(hosts[i]), SD_workstation_get_power(hosts[i])); props = SD_workstation_get_properties(hosts[i]); + if (SD_workstation_get_cores(hosts[i])>1) { + printf(" cores=\"%d\"", SD_workstation_get_cores(hosts[i])); + } if (props && !xbt_dict_is_empty(props)) { printf(">\n"); xbt_dict_foreach(props, cursor, key, data) {