Re: [hwloc-devel] First plugin namespace issue report

2013-06-05 Thread Jeff Squyres (jsquyres)
On Jun 4, 2013, at 11:12 PM, Brice Goglin wrote: > This code has to be in the plugin for real, it obviously cannot be > shared in the hwloc core, but putting it in a static inline in > hwloc/plugins.h may still be OK? I've written a Haiku in honor of the occasion:

Re: [hwloc-devel] First plugin namespace issue report

2013-06-05 Thread Jeff Squyres (jsquyres)
On Jun 4, 2013, at 9:55 AM, Brice Goglin wrote: >> One option might be to try to lt_dlsym one of the hwloc symbols that you >> know you'll need in the plugin (or any public hwloc symbol, for that >> matter). If ltdl_sym gets NULL back for the hwloc global symbol, then

Re: [hwloc-devel] First plugin namespace issue report

2013-06-04 Thread Brice Goglin
Le 04/06/2013 14:34, Jeff Squyres (jsquyres) a écrit : > On Jun 4, 2013, at 5:11 AM, Brice Goglin wrote: > >> 2) custom test with ltdl: The program just silently fails to load hwloc >> symbols. Equivalent to passing the topology flag above. > > One option might be to try to

Re: [hwloc-devel] First plugin namespace issue report

2013-06-04 Thread Jeff Squyres (jsquyres)
On Jun 4, 2013, at 5:22 AM, Brice Goglin wrote: > I take that back. Topology flags come too late, plugins are loaded > during the first topology_init(). Bummer. > We're back to things like "export HWLOC_PLUGINS_PATH=/none" Perhaps add a pre-init API to set flags like

Re: [hwloc-devel] First plugin namespace issue report

2013-06-04 Thread Jeff Squyres (jsquyres)
On Jun 4, 2013, at 5:11 AM, Brice Goglin wrote: > 2) custom test with ltdl: The program just silently fails to load hwloc > symbols. Equivalent to passing the topology flag above. One option might be to try to lt_dlsym one of the hwloc symbols that you know you'll need

Re: [hwloc-devel] First plugin namespace issue report

2013-06-04 Thread Brice Goglin
Le 04/06/2013 14:11, Brice Goglin a écrit : > Adding topology flag to disable plugin may indeed be a nice workaround. > As long as the hwloc user doesn't need what's in plugin, things will > work fine. And I think things will work fine in the OpenCL case. > I take that back. Topology flags come

Re: [hwloc-devel] First plugin namespace issue report

2013-06-04 Thread Brice Goglin
(adding the list to CC) Le 04/06/2013 13:35, Jeff Squyres (jsquyres) a écrit : > On Jun 4, 2013, at 4:10 AM, Brice Goglin wrote: > >>> I guess I'm asking - why can't that plugin link against an embedded >>> (non-DSO) hwloc? >> It can for sure. But if there's a hwloc