X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0b63f78dc217b79305cef05bd2200069d3e24475..0992a06d7845b577ac03500bbc555b21e92d6c1a:/examples/smpi/replay_multiple/replay_multiple.c diff --git a/examples/smpi/replay_multiple/replay_multiple.c b/examples/smpi/replay_multiple/replay_multiple.c index 7c75a0bf80..d258fe5a56 100644 --- a/examples/smpi/replay_multiple/replay_multiple.c +++ b/examples/smpi/replay_multiple/replay_multiple.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2017. The SimGrid Team. +/* Copyright (c) 2009-2019. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -13,7 +13,16 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example"); static int smpi_replay(int argc, char *argv[]) { - smpi_replay_run(&argc, &argv); + const char* instance_id = argv[1]; + int rank = xbt_str_parse_int(argv[2], "Cannot parse rank '%s'"); + const char* trace_filename = argv[3]; + double start_delay_flops = 0; + + if (argc > 4) { + start_delay_flops = xbt_str_parse_double(argv[4], "Cannot parse start_delay_flops"); + } + + smpi_replay_run(instance_id, rank, start_delay_flops, trace_filename); return 0; }