+1
-Paul [Sent from my phone]
On Jun 5, 2013 5:02 AM, "Jeff Squyres (jsquyres)"
wrote:
> 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
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:
Linkers are your friends
like
Le 05/06/2013 05:38, Jeff Squyres (jsquyres) a écrit :
> 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 bac
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 the
>> plugin should dis
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 lt_dlsym one of the hwl
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 this...?
--
Jeff Squyres
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 in the plugin (or any pu
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 to
(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 package in your distrib (and