Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sonar is currently failing, try to upgrade sonar-scanner.
[simgrid.git] / examples / smpi / load_balancer_replay / load_balancer_replay.cpp
1 /* Copyright (c) 2009-2018. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #include "smpi/smpi.h"
7 #include "smpi/sampi.h"
8 #include <simgrid/s4u.hpp>
9 #include <simgrid/plugins/load_balancer.h>
10 #include <simgrid/plugins/load.h>
11
12 XBT_LOG_NEW_DEFAULT_CATEGORY(sampi_load_balancer_test, "Messages specific for this sampi example");
13
14
15 int main(int argc, char* argv[])
16 {
17   sg_host_load_plugin_init();
18   smpi_replay_init(&argc, &argv);
19   sg_load_balancer_plugin_init(); // Must be called after smpi_replay_init as this will overwrite some replay actions
20
21   smpi_replay_main(&argc, &argv);
22   return 0;
23 }