2323#include <stdarg.h>
2424#include <vector>
2525
26- #if CMK_LBDB_ON
26+ #if 1
2727# include "LBManager.h"
2828# include "MetaBalancer.h"
2929# if CMK_GLOBAL_LOCATION_UPDATE
3030# include "BaseLB.h"
3131# include "init.h"
3232# endif
3333CkpvExtern (int , _lb_obj_index ); // for lbdb user data for obj index
34- #endif // CMK_LBDB_ON
34+ #endif // 1
3535
3636CpvExtern (std ::vector < NcpyOperationInfo * > , newZCPupGets ); // used for ZC Pup
3737#ifndef CMK_CHARE_USE_PTR
@@ -78,7 +78,7 @@ bool useNodeBlkMapping;
7878/// unlocated array elements
7979int _messageBufferingThreshold ;
8080
81- #if CMK_LBDB_ON
81+ #if 1
8282
8383# if CMK_GLOBAL_LOCATION_UPDATE
8484void UpdateLocation (MigrateInfo & migData )
@@ -1723,7 +1723,7 @@ void CkMigratable::commonInit(void)
17231723 prev_load = 0.0 ;
17241724 can_reset = false;
17251725
1726- #if CMK_LBDB_ON
1726+ #if 1
17271727 if (_lb_args .metaLbOn ())
17281728 {
17291729 atsync_iteration = myRec -> getMetaBalancer ()-> get_iteration ();
@@ -1750,7 +1750,7 @@ void CkMigratable::pup(PUP::er& p)
17501750 p | can_reset ;
17511751 p | usesAutoMeasure ;
17521752
1753- #if CMK_LBDB_ON
1753+ #if 1
17541754 bool readyMigrate = false;
17551755 if (p .isPacking ())
17561756 readyMigrate = myRec -> isReadyMigrate ();
@@ -1795,7 +1795,7 @@ CkMigratable::~CkMigratable()
17951795 prefetchObjID = -1 ;
17961796 }
17971797#endif
1798- #if CMK_LBDB_ON
1798+ #if 1
17991799 if (barrierRegistered )
18001800 {
18011801 DEBL ((AA "Removing barrier for element %s\n" AB , idx2str (thisIndexMax )));
@@ -1832,7 +1832,7 @@ void CkMigratable::UserSetLBLoad()
18321832 CkAbort ("::UserSetLBLoad() not defined for this array element!\n" );
18331833}
18341834
1835- #if CMK_LBDB_ON // For load balancing:
1835+ #if 1 // For load balancing:
18361836// user can call this helper function to set obj load (for model-based lb)
18371837void CkMigratable ::setObjTime (double cputime ) { myRec -> setObjTime (cputime ); }
18381838double CkMigratable ::getObjTime () { return myRec -> getObjTime (); }
@@ -2079,7 +2079,7 @@ CkLocRec::CkLocRec(CkLocMgr* mgr, bool fromMigration, bool ignoreArrival,
20792079 const CkArrayIndex & idx_ , CmiUInt8 id_ )
20802080 : myLocMgr (mgr ), idx (idx_ ), id (id_ ), deletedMarker (NULL ), running (false)
20812081{
2082- #if CMK_LBDB_ON
2082+ #if 1
20832083 DEBL ((AA "Registering element %s with load balancer\n" AB , idx2str (idx )));
20842084 nextPe = -1 ;
20852085 asyncMigrate = false;
@@ -2109,7 +2109,7 @@ CkLocRec::~CkLocRec()
21092109{
21102110 if (deletedMarker != NULL )
21112111 * deletedMarker = true;
2112- #if CMK_LBDB_ON
2112+ #if 1
21132113 stopTiming ();
21142114 DEBL ((AA "Unregistering element %s from load balancer\n" AB , idx2str (idx )));
21152115 lbmgr -> UnregisterObj (ldHandle );
@@ -2122,7 +2122,7 @@ void CkLocRec::migrateMe(int toPe) // Leaving this processor
21222122 myLocMgr -> emigrate (this , toPe );
21232123}
21242124
2125- #if CMK_LBDB_ON
2125+ #if 1
21262126void CkLocRec ::startTiming (int ignore_running )
21272127{
21282128 if (!ignore_running )
@@ -2196,7 +2196,7 @@ bool CkLocRec::invokeEntry(CkMigratable* obj, void* msg, int epIdx, bool doFree)
21962196 }
21972197 }
21982198#endif
2199- #if CMK_LBDB_ON
2199+ #if 1
22002200 if (!isDeleted )
22012201 checkBufferedMigration (); // check if should migrate
22022202#endif
@@ -2206,7 +2206,7 @@ bool CkLocRec::invokeEntry(CkMigratable* obj, void* msg, int epIdx, bool doFree)
22062206 return true;
22072207}
22082208
2209- #if CMK_LBDB_ON
2209+ #if 1
22102210
22112211void CkLocRec ::staticMetaLBResumeWaitingChares (LDObjHandle h , int lb_ideal_period )
22122212{
@@ -2433,7 +2433,7 @@ CkLocMgr::CkLocMgr(CkArrayOptions opts)
24332433 compressor = ck ::FixedArrayIndexCompressor ::make (bounds );
24342434
24352435 // Find and register with the load balancer
2436- #if CMK_LBDB_ON
2436+ #if 1
24372437 lbmgrID = _lbmgr ;
24382438 metalbID = _metalb ;
24392439 initLB (lbmgrID , metalbID );
@@ -2448,7 +2448,7 @@ CkLocMgr::CkLocMgr(CkMigrateMessage* m)
24482448
24492449CkLocMgr ::~CkLocMgr ()
24502450{
2451- #if CMK_LBDB_ON
2451+ #if 1
24522452 syncBarrier -> removeBeginReceiver (lbBarrierBeginReceiver );
24532453 syncBarrier -> removeEndReceiver (lbBarrierEndReceiver );
24542454 lbmgr -> UnregisterOM (myLBHandle );
@@ -2489,7 +2489,7 @@ void CkLocMgr::pup(PUP::er& p)
24892489 compressor = ck ::FixedArrayIndexCompressor ::make (bounds );
24902490 }
24912491
2492- #if CMK_LBDB_ON
2492+ #if 1
24932493 p | lbmgrID ;
24942494 p | metalbID ;
24952495 if (p .isUnpacking ())
@@ -2997,7 +2997,7 @@ void CkLocMgr::emigrate(CkLocRec* rec, int toPe)
29972997 // Allocate and pack into message
29982998 CkArrayElementMigrateMessage * msg = new (bufSize , 0 )
29992999 CkArrayElementMigrateMessage (idx , id ,
3000- #if CMK_LBDB_ON
3000+ #if 1
30013001 rec -> isAsyncMigrate (),
30023002#else
30033003 false,
@@ -3032,7 +3032,7 @@ void CkLocMgr::emigrate(CkLocRec* rec, int toPe)
30323032 cache -> recordEmigration (id , toPe );
30333033 informHome (idx , toPe );
30343034
3035- #if !CMK_LBDB_ON && CMK_GLOBAL_LOCATION_UPDATE
3035+ #if !1 && CMK_GLOBAL_LOCATION_UPDATE
30363036 DEBM ((AA "Global location update. idx %s "
30373037 "assigned to %d \n" AB ,
30383038 idx2str (idx ), toPe ));
@@ -3042,7 +3042,7 @@ void CkLocMgr::emigrate(CkLocRec* rec, int toPe)
30423042 CK_MAGICNUMBER_CHECK
30433043}
30443044
3045- #if CMK_LBDB_ON
3045+ #if 1
30463046void CkLocMgr ::informLBPeriod (CkLocRec * rec , int lb_ideal_period )
30473047{
30483048 callMethod (rec , & CkMigratable ::recvLBPeriod , (void * )& lb_ideal_period );
@@ -3216,13 +3216,13 @@ unsigned int CkLocMgr::numLocalElements()
32163216
32173217/********************* LocMgr: LOAD BALANCE ****************/
32183218
3219- #if !CMK_LBDB_ON
3219+ #if !1
32203220// Empty versions of all load balancer calls
32213221void CkLocMgr ::startInserting (void ) {}
32223222void CkLocMgr ::doneInserting (void ) {}
32233223#endif
32243224
3225- #if CMK_LBDB_ON
3225+ #if 1
32263226void CkLocMgr ::initLB (CkGroupID lbmgrID_ , CkGroupID metalbID_ )
32273227{ // Find and register with the load balancer
32283228 lbmgr = (LBManager * )CkLocalBranch (lbmgrID_ );
0 commit comments