Re: [hwloc-users] Embedded hwloc and Name Mangling Convention

2019-10-10 Thread Gutierrez, Samuel K. via hwloc-users
Brice, Ah, okay. That’s pretty slick. I have some renaming to do :-). Thank you, Sam On Oct 10, 2019, at 11:14 AM, Brice Goglin mailto:brice.gog...@inria.fr>> wrote: Yes. Once you call HWLOC_SET_SYMBOL_PREFIX(), hwloc takes care of automatically renaming your external callers and our inter

Re: [hwloc-users] Embedded hwloc and Name Mangling Convention

2019-10-10 Thread Brice Goglin
Yes. Once you call HWLOC_SET_SYMBOL_PREFIX(), hwloc takes care of automatically renaming your external callers and our internal hwloc code. The idea is that none of us has to change your code when enabling renaming. That's how OMPI manages to support both renamed embedded hwloc and non-renamed ext

Re: [hwloc-users] Embedded hwloc and Name Mangling Convention

2019-10-10 Thread Gutierrez, Samuel K. via hwloc-users
Sorry, I sent the previous email too quickly. Is the recommended usage of embedded hwloc when using HWLOC_SET_SYMBOL_PREFIX to use the non-renamed symbols and avoid altogether the prefixed ones? Thank you, Sam On Oct 10, 2019, at 10:30 AM, Brice Goglin mailto:brice.gog...@inria.fr>> wrote: L

Re: [hwloc-users] Embedded hwloc and Name Mangling Convention

2019-10-10 Thread Gutierrez, Samuel K. via hwloc-users
Thank you, Brice. A prudent approach. I’ll carry on. Best, Sam On Oct 10, 2019, at 10:30 AM, Brice Goglin mailto:brice.gog...@inria.fr>> wrote: Le 10/10/2019 à 17:38, Gutierrez, Samuel K. via hwloc-users a écrit : Good morning, I have a question about expected name mangling behavior when usin

Re: [hwloc-users] Embedded hwloc and Name Mangling Convention

2019-10-10 Thread Brice Goglin
Le 10/10/2019 à 17:38, Gutierrez, Samuel K. via hwloc-users a écrit : > Good morning, > > I have a question about expected name mangling behavior when using > HWLOC_SET_SYMBOL_PREFIX in hwloc v2.1.0 (and perhaps other versions). > > Say, for example, I do the following in a project embedding hwloc

[hwloc-users] Embedded hwloc and Name Mangling Convention

2019-10-10 Thread Gutierrez, Samuel K. via hwloc-users
Good morning, I have a question about expected name mangling behavior when using HWLOC_SET_SYMBOL_PREFIX in hwloc v2.1.0 (and perhaps other versions). Say, for example, I do the following in a project embedding hwloc: HWLOC_SET_SYMBOL_PREFIX(foo_internal_) HWLOC_SETUP_CORE(…) ... Now, entry po