Revision 4185a5162d656d0bdb87a2599198e29c516d6470 authored by Harshitha on 10 May 2014, 01:33:10 UTC, committed by Harshitha on 25 July 2014, 19:22:59 UTC
commit 6a10d6aa7d83ecb6323aa033ef82d69fec0392ff Author: Harshitha <gplkrsh2@illinois.edu> Date: Fri May 2 14:17:23 2014 -0500 Call TPWorkDone before finishWalk Change-Id: Ib118d156cb01f0b93a55176a98d8164c26933290 commit 3f599bb98488be2a1c73d28e799ba196a927d586 Author: Harshitha <gplkrsh2@illinois.edu> Date: Mon Apr 28 20:49:58 2014 -0500 Intra node load balancing using CkLoop commit 760de0f3b7d294712e11cdec74b30311a7bf540e Author: Harshitha <gplkrsh2@illinois.edu> Date: Mon Apr 28 19:48:42 2014 -0500 Intra node load balancing using CkLoop Change-Id: Ib21eb0a0d2a37e765ee3064ce420b1b310621185 Change-Id: Id1b94c1aef9257161f65ccddd27b1c756dc9d323
1 parent b462e34
Orb3dLB.h
/**
* \addtogroup CkLdb
*/
/*@{*/
#ifndef _ORB3DLB_H_
#define _ORB3DLB_H_
#include "CentralLB.h"
#include "MapStructures.h"
#include "Orb3dLB.decl.h"
#include "TaggedVector3D.h"
#include <queue>
void CreateOrb3dLB();
BaseLB * AllocateOrb3dLB();
class Orb3dLB : public CentralLB {
friend class MultistepLB;
private:
bool firstRound;
bool centroidsAllocated;
ComparatorFn compares[NDIMS];
ComparatorFn pc[NDIMS];
// pointer to stats->to_proc
CkVec<int> *mapping;
int procsPerNode;
// things are stored in here before work
// is ever called.
TaggedVector3D *tpCentroids;
CkReductionMsg *tpmsg;
int nrecvd;
bool haveTPCentroids;
CkVec<TPObject> tps;
CkVec<Node> nodes;
bool QueryBalanceNow(int step);
void printData(BaseLB::LDStats &stats, int phase, int *revObjMap);
public:
Orb3dLB(const CkLBOptions &);
Orb3dLB(CkMigrateMessage *m):CentralLB(m) { lbname = "Orb3dLB"; }
void work(BaseLB::LDStats* stats);
void receiveCentroids(CkReductionMsg *msg);
void directMap(int tpstart, int tpend, int nodestart, int nodeend);
void map(int tpstart, int tpend, int nodestart, int nodeend, int xs, int ys, int zs, int dim);
int nextDim(int dim, int xs, int ys, int zs);
void partitionEvenLoad(int tpstart, int tpend, int &tpmid);
void halveNodes(int nodestart, int nodeend, int &nodemid);
};
#endif /* _ORB3DLB_H_ */
/*@}*/
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...