Re: [hwloc-devel] random api questions

2010-01-30 Thread Samuel Thibault
Brice Goglin, le Sat 30 Jan 2010 18:17:31 +0100, a écrit : > Wait, does WHOLE_SYSTEM also toggle the ignoring of offline_cpus in > obj->cpuset? Yes, I believe it has always been that way. Samuel

Re: [hwloc-devel] random api questions

2010-01-30 Thread Brice Goglin
Samuel Thibault wrote: > Yes, if we weren't wanting to express contradictory things it'd be way > simpler, but we want to. I don't believe duplicating information will > help the programmer to understand things. For now, I can see three > usage cases: > > - An application wants to bind itself

Re: [hwloc-devel] random api questions

2010-01-30 Thread Samuel Thibault
Brice Goglin, le Sat 30 Jan 2010 17:40:29 +0100, a écrit : > Samuel Thibault wrote: > > Brice Goglin, le Sat 30 Jan 2010 17:34:32 +0100, a écrit : > > > >> But now that I understand all this, I wonder what application developers > >> will think about it. Most applications want the list of procs

Re: [hwloc-devel] random api questions

2010-01-30 Thread Brice Goglin
Samuel Thibault wrote: > Brice Goglin, le Sat 30 Jan 2010 17:34:32 +0100, a écrit : > >> But now that I understand all this, I wonder what application developers >> will think about it. Most applications want the list of procs that are >> online and allowed. >> > > And that's what they

Re: [hwloc-devel] random api questions

2010-01-30 Thread Brice Goglin
Samuel Thibault wrote: > What about now (r1711)? > Yes, it's good now. But now that I understand all this, I wonder what application developers will think about it. Most applications want the list of procs that are online and allowed. So they'll have to compute the intersection of online and

Re: [hwloc-devel] random api questions

2010-01-30 Thread Samuel Thibault
Brice Goglin, le Sat 30 Jan 2010 17:05:29 +0100, a écrit : > >> What's the difference between obj->cpuset and the other obj->*cpuset ? > >> Some documentation is missing there, > >> > > > > Is the documentation on the right of the fields not sufficient? > > > > No at all... What about

Re: [hwloc-devel] random api questions

2010-01-30 Thread Brice Goglin
Samuel Thibault wrote: > Brice Goglin, le Sat 30 Jan 2010 16:42:34 +0100, a écrit : > >> Do we want a #define HWLOC_API_VERSION to help people support both the >> 0.9 and the 1.0 APIs at runtime ? >> > > At build time you mean? > Yes. >> What's the difference between obj->cpuset and

Re: [hwloc-devel] random api questions

2010-01-30 Thread Samuel Thibault
Brice Goglin, le Sat 30 Jan 2010 16:42:34 +0100, a écrit : > Do we want a #define HWLOC_API_VERSION to help people support both the > 0.9 and the 1.0 APIs at runtime ? At build time you mean? > What's the difference between obj->cpuset and the other obj->*cpuset ? > Some documentation is missing