Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] backends and plugins
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2012-08-07 07:33:46

Brice Goglin, le Tue 07 Aug 2012 13:29:31 +0200, a écrit :
> Le 07/08/2012 13:06, Jeff Squyres a écrit :
> >> Aside from the main "discover" callback, backends may also define some
> >> callbacks to be invoked when new object are created. The main example is
> >> Linux creating "OS devices" when a new "PCI device" is added by the PCI
> >> backend. CUDA could use that too to fill GPU PCI devices. This is not
> >> strictly needed since adding these devices could still be done later,
> >> once the PCI backend is done. We'll see.
> > This is a nifty idea. Is the idea that callback can be registered to be fired when a specific PCI vendor / device ID are found?
> I am not sure yet. Linux would use the callback for some classes of
> devices. CUDA for some vendor ID. We could do the general case (all
> object types) and have the callback check the device attribute, but it
> could be overkill.

I'd say it's actually simpler and shouldn't be too expensive.