charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Tom Quinn <trq AT astro.washington.edu>
- To: Jozsef Bakosi <jbakosi AT lanl.gov>
- Cc: charm AT cs.illinois.edu
- Subject: Re: [charm] Detect restart from app
- Date: Thu, 19 Mar 2020 09:21:22 -0700 (PDT)
- Authentication-results: illinois.edu; spf=none smtp.mailfrom=trq AT astro.washington.edu; dmarc=none header.from=astro.washington.edu
What I do in ChaNGa is:
The Main object has an attribute "bIsRestarting". The Main::Main(CkArgMsg* m) constructor sets this to "0", while the Main::Main(CkMigrateMessage* m) constructor (which is only called if restarting from a checkpoint) sets it to "1". The callback method you pass to CkStartCheckpoint() can then test on "bIsRestarting".
Tom Quinn Astronomy, University of Washington
Internet:
trq AT astro.washington.edu
Phone: 206-685-9009
On Thu, 19 Mar 2020, Jozsef Bakosi wrote:
Hi folks,
Is there a way to detect from a Charm++ app that it just came back from
a restart and not just finished a checkpoint?
According to the manual:
cb will be invoked after the checkpoint is done, as well as when the
restart is complete:
CkCallback cb(CkIndex_Hello::SayHi(), helloProxy);
CkStartCheckpoint("log", cb);
When cb is called, I'd like to zero some counters if and only if it just
came back from a restart.
Thanks,
Jozsef
- [charm] Detect restart from app, Jozsef Bakosi, 03/19/2020
- Re: [charm] Detect restart from app, Tom Quinn, 03/19/2020
- Re: [charm] [EXTERNAL] Re: Detect restart from app, Jozsef Bakosi, 03/19/2020
- Re: [charm] [EXTERNAL] Re: Detect restart from app, Jozsef Bakosi, 03/19/2020
- Re: [charm] [EXTERNAL] Re: Detect restart from app, White, Samuel T, 03/26/2020
- Re: [charm] [EXTERNAL] Re: Detect restart from app, Jozsef Bakosi, 03/19/2020
- Re: [charm] [EXTERNAL] Re: Detect restart from app, Jozsef Bakosi, 03/19/2020
- Re: [charm] Detect restart from app, Tom Quinn, 03/19/2020
Archive powered by MHonArc 2.6.19.