Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI/LB] Use mapping class within the LB
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Tue, 17 Jul 2018 11:38:39 +0000 (13:38 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 2 Aug 2018 19:55:53 +0000 (21:55 +0200)
include/simgrid/smpi/loadbalancer/load_balancer.hpp

index 37606ba..6bc4e72 100644 (file)
@@ -2,6 +2,8 @@
 #ifndef HAVE_SG_PLUGIN_LB
 #define HAVE_SG_PLUGIN_LB
 
+#include <simgrid/s4u.hpp>
+
 namespace simgrid {
 namespace plugin {
 namespace loadbalancer {
@@ -52,8 +54,8 @@ public:
 
 class LoadBalancer
 {
-  std::map<int, double> actor_computation;
-  std::map<simgrid::s4u::ActorPtr, simgrid::s4u::Host*> new_mapping;
+  Mapping new_mapping;
+  std::map</*proc id*/int, double> actor_computation;
 
 public:
   LoadBalancer();