Open MPI logo

Hardware Locality Development Mailing List Archives

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

Subject: [hwloc-devel] multiple simultaneous topology inits?
From: Guy Streeter (streeter_at_[hidden])
Date: 2011-02-28 15:52:28


I was considering the design of an administration tool in python, and my
original idea was to have each module that needs the topology object create
its own. This means that different parts of the same program (but possibly in
different threads) would call init and load on their own topology structure,
and use that structure in their hwloc routines calls.
Is this a safe/reasonable/efficient way to go, or should I call init and load
on only one structure and pass that one around throughout the application?

thanks,
--Guy