charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Nicolas Bock <nicolasbock AT gmail.com>
- To: "charm AT cs.uiuc.edu" <charm AT cs.uiuc.edu>
- Subject: Re: [charm] manual LB
- Date: Thu, 22 Aug 2013 13:09:43 -0600
- List-archive: <http://lists.cs.uiuc.edu/pipermail/charm/>
- List-id: CHARM parallel programming system <charm.cs.uiuc.edu>
To answer my own question: The StartLB() method has to be called directly on the LBDatabase object. Sample code:
{
LBDatabase *db = LBDatabaseObj();
/* Do something and pick an opportune moment to sneak in a wake-up call to the LB. */
db->StartLB();
/* To make sure that the LB is done balancing things, insert the following also. */
CkWaitQD();
/* Do something else. */
}
Thanks,
nick
On Wed, Aug 21, 2013 at 3:03 PM, Nicolas Bock <nicolasbock AT gmail.com> wrote:
Hi,following Section 7.3 I am trying to use the LB in manual mode. When I compile the code I get this error:migration.cc:130:17: error: ‘StartLB’ was not declared in this scopeI notice that LBDatabase.h exposes TurnManualLB{On,Off}() but does not do that with LBDatabase::StartLB(), which is private to LBDatabase. Am I missing something?Thanks,nick
- [charm] manual LB, Nicolas Bock, 08/21/2013
- Re: [charm] manual LB, Nicolas Bock, 08/22/2013
Archive powered by MHonArc 2.6.16.