https://github.com/N-BodyShop/changa
Raw File
Tip revision: fac3a3c37fc98add1b43808ff7147569504dd552 authored by Tom Quinn on 16 February 2018, 05:31:54 UTC
Fix issues with nSteps = 0 and timestep calculation.
Tip revision: fac3a3c
IntraNodeLBManager.h
#ifndef INTRA_NODE_LB_MANAGER_H
#define INTRA_NODE_LB_MANAGER_H

#include <vector>

using std::vector;

/// @brief Manage intranode work for ckLoop intra node work sharing.
class IntraNodeLBManager : public CBase_IntraNodeLBManager {

 public:
  IntraNodeLBManager(int dummy, CkGroupID gid);

  IntraNodeLBManager(CkMigrateMessage *m);

  void pup(PUP::er &p);
 
  void registerTP();
  void finishedTPWork();

  vector<int> getOtherIdlePes();

 private:
  int total_tps_;
  int tps_done_;
  int num_loc_mgr_;
  CkGroupID *loc_mgr_;
};
#endif
back to top