[Mochi-devel] New versions of Margo, Thallium, and PyMargo

Dorier, Matthieu mdorier at anl.gov
Wed Dec 18 09:14:55 CST 2019


Dear Mochi users,

I just released new versions for the following packages:

  *   Margo => 0.6
  *   Thallium => 0.5
  *   PyMargo => 0.3
As usually, you can get them by updating your clone of sds-repo and having spack rebuild them.

These new version add 4 new functions:

  *   margo_push_prefinalize_callback
  *   margo_provider_push_prefinalize_callback
  *   margo_pop_prefinalize_callback
  *   margo_provider_pop_prefinalize_callback

Contrary to finalization callbacks, pre-finalization callbacks are called when Margo is finalized, but *before* the Mercury progress loop is terminated. This allows to do things that still require the progress loop to be running (like sending RPCs or calling margo_thread_sleep). However keep in mind that since the progress loop still runs, the process can still receive RPCs.

The readthedocs will be updated shortly with this information.

As a concrete example, if you are using SSG, you will want to put ssg_finalize() in a pre-finalize callback, since this function sends RPCs and calls margo_thread_sleep. Calling ssg_finalize() in a finalize callback will cause the program to hang.

Thanks,

Matthieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mochi-devel/attachments/20191218/83ee3000/attachment.html>


More information about the mochi-devel mailing list