On Apr 29, 2006, at 9:44 PM, Mars Lenjoy wrote:
> the BLCR has been implemented by registering a callback function
> and then request that!
>
> my question is that, after the register is done, how to cause the
> checkpoint?
>
> for example:
>
> === lam-7.1.2/share/ssi/crlam/blcr/src/ssi_crlam_blcr.c L153 ===
> /*
> * Register the checkpoint signal handler
> */
> cr_thread_callback_id = cr_register_callback(crlam_thread_callback,
> cr_thread_callback_arg,
> CR_THREAD_CONTEXT);
> cr_signal_callback_id = cr_register_callback(crlam_signal_callback,
> cr_signal_callback_arg,
> CR_SIGNAL_CONTEXT);
> ==================================================
>
I'm not exactly sure what you are asking. cr_register_callback() is
part of the BLCR API. It will call the specified callback when the
process receives a checkpoint request. We don't really care how that
callback is fired -- that's the problem of BLCR. The checkpoint
requests are delivered to the specified process by the cr_checkpoint
command that is part of the BLCR package.
If you are interested in the internals of the BLCR implementation,
you should contact the blcr mailing list. If I missed your question
entirely, please let me know.
Brian
--
Brian Barrett
LAM/MPI developer and all around nice guy
Have a LAM/MPI day: http://www.lam-mpi.org/
|