-/* 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
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;
}
msg_error_t res;
MSG_init(&argc, argv);
+ SMPI_init();
xbt_assert(argc > 3, "Usage: %s description_file platform_file deployment_file\n"
"\tExample: %s smpi_multiple_apps msg_platform.xml msg_deployment.xml\n", argv[0], argv[0]);
fclose(fp);
MSG_launch_application(argv[3]);
- SMPI_init();
res = MSG_main();