Re: API for checkpoint

From: Paul H. Hargrove (PHHargrove_at_lbl_dot_gov)
Date: Wed Aug 01 2007 - 14:17:36 PDT

  • Next message: Paul H. Hargrove: "Re: Somthing horribly wrong"
    Neal, you are missing a call to  
    cr_initialize_checkpoint_args_t(&cr_args), needed before you start 
    initializing fields of the cr_args structure.
    Paul H. Hargrove wrote:
    > Neal,
    >  Your code below is (as best as I can tell w/o running it) correct.  
    > However, the dependence on the specific return values -1 and -2 from 
    > cr_poll_checkpoint() is probably unsafe.  I'll see about adding CR_* 
    > constants to replace the explicit -1 and -2 values in the next beta 
    > release.  Once added, you'll find the descriptions in libcr.h and use 
    > example in cr_checkpoint.c.
    >  You are correct that the checkpoint is not necessarily flushed to 
    > disk when the poll call succeeds.  You'll have to make your own 
    > fsync() call if you require that guarantee.
    >  Feel free to ask if you need any more clarifications.
    >  Below I've listed some of the advantages of this new API over the 
    > previous one.
    > -Paul
    Paul H. Hargrove                          PHHargrove_at_lbl_dot_gov
    Future Technologies Group                 
    HPC Research Department                   Tel: +1-510-495-2352
    Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900

  • Next message: Paul H. Hargrove: "Re: Somthing horribly wrong"