On Jun 23, 2010, at 4:29 PM, Brice Goglin wrote:
> Don't you want hwloc_cpuset_set(set, i) instead ?
> hwloc_cpuset_cpu(set, i) changes the cpuset into a single CPU, i.e. it's
> zero(set) + set(set, i).
Ah. Well, that would do it. :-)
--
Jeff Squyres
jsquy...@cisco.com
For corporate legal inf
Le 23/06/2010 22:27, Jeff Squyres a écrit :
> Hm. We should be. Here's the hwloc plugin code for setting CPU affinity
> (it's static because it's invoked by function pointer):
>
> static int module_set(opal_paffinity_base_cpu_set_t mask)
> {
> int i, ret = OPAL_SUCCESS;
> hwloc_cpuset_t
Hm. We should be. Here's the hwloc plugin code for setting CPU affinity (it's
static because it's invoked by function pointer):
static int module_set(opal_paffinity_base_cpu_set_t mask)
{
int i, ret = OPAL_SUCCESS;
hwloc_cpuset_t set;
hwloc_topology_t *t = &mca_paffinity_hwloc_compo
I see this in the solaris binding core:
if (hwloc_cpuset_weight(hwloc_set) != 1) {
errno = EXDEV;
return -1;
}
OMPI doesn't get this error ?
Brice
Le 23/06/2010 21:56, Terry Dontje a écrit :
> Does hwloc think it supports binding processes to sockets or multiple
> cpus? I am ask