mercury icon indicating copy to clipboard operation
mercury copied to clipboard

HG: Add HG_Class_get_init_info

Open mdorier opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe.

In the context of Margo, to fill up the JSON configuration that represents the parameters used to initialize Mercury, we would need to be able to retrieve the hg_init_info that was used to initialized Mercury if the user provided their own hg_class to Margo (or a default hg_init_info if HG_Init was used).

Describe the solution you'd like

struct hg_init_info* HG_Class_get_init_info(struct hg_class*)

mdorier avatar Jul 21 '22 15:07 mdorier

OK. We currently do not keep that info around but that's probably possible to do it.

soumagne avatar Jul 22 '22 16:07 soumagne

@mdorier let me know if you still need that feature. I've been looking at it recently and it's almost impossible to support it because of some the init info fields that would need to be copied and kept around. Some fields are cached but that's only a small part of them.

soumagne avatar Dec 09 '22 21:12 soumagne

It's definitely not a priority. I have modified margo to prevent it from assuming/reporting default values when HG was initialized externally.

mdorier avatar Dec 09 '22 22:12 mdorier