Re: [hwloc-devel] release status

2009-10-05 Thread Jeff Squyres
On Oct 5, 2009, at 10:34 AM, Brice Goglin wrote: I haven't had time to actually fully implement this yet, but my last plan was opaque pointer + functions such as: hwloc_cpuset_t hwloc_cpuset_alloc(void); void hwloc_cpuset_destroy(hwloc_cpuset_t cpuset); Minor quibble: it might be

Re: [hwloc-devel] release status

2009-10-05 Thread Fawzi Mohamed
On 5-ott-09, at 16:02, Jeff Squyres wrote: On Oct 5, 2009, at 9:23 AM, Fawzi Mohamed wrote: yes you are right, I was unclear, I meant that I would pass a cpu_set struct by value (not always pass a pointer). If one wants to later migrate to passing just a pointer, then internally this struct

Re: [hwloc-devel] release status

2009-10-05 Thread Fawzi Mohamed
On 5-ott-09, at 15:31, Samuel Thibault wrote: Fawzi Mohamed, le Mon 05 Oct 2009 15:23:23 +0200, a écrit : well you assume you have a single copy of the whole system structure, I am not sure that would be the case, and while the memory per core is growing, the memory per thread is not

Re: [hwloc-devel] release status

2009-10-03 Thread Fawzi Mohamed
, I think it might be worthwhile to keep something size+pointer so that if the size is small say less than size_t the cpuset is stored where otherwise there is the pointer... or something like that. Indeed I would keep a minimal struct... Especially with a large number of OS processor

Re: [hwloc-devel] release status

2009-10-02 Thread Fawzi Mohamed
Hi Jeff & Samuel, about the problems with linking, passing only the handle I can recompile the .so, but I cannot initialize constants, at least on my system. So exporting handles works, it is having addressing directly of external variables that have that type that is problematic, because

Re: [hwloc-devel] release status

2009-10-02 Thread Samuel Thibault
Jeff Squyres, le Fri 02 Oct 2009 13:53:48 -0400, a écrit : > On Oct 2, 2009, at 1:39 PM, Samuel Thibault wrote: > > >I also think inlining doesn't bring much performance compared to the > >cost of parsing a cpuset. > > > >> You'll get warnings from the linker about how the struct changed >

Re: [hwloc-devel] release status

2009-10-02 Thread Jeff Squyres
(we've been having some off-list discussions about when to release 0.9.1 -- we decided that we wanted to add dynamic CPU sets as the last feature before release. So now we've been talking about how/what to do for dynamic CPU sets. It only occurred to me mid-thread that there was no