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_component.topology; set = hwloc_cpuset_alloc(); hwloc_cpuset_zero(set); for (i = 0; ((unsigned int) i) < OPAL_PAFFINITY_BITMASK_T_NUM_BITS; ++i) { if (OPAL_PAFFINITY_CPU_ISSET(i, mask) && i < mca_paffinity_hwloc_component.cpuset_max_size) { hwloc_cpuset_cpu(set, i); } } if (0 != hwloc_set_cpubind(*t, set, 0)) { ret = OPAL_ERR_IN_ERRNO; } hwloc_cpuset_free(set); return ret; } On Jun 23, 2010, at 4:14 PM, Brice Goglin wrote: > 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 asking because I believe there are no current Solaris accessors that >> support this (processor_bind only binds a pid or a set of pids to a *single* >> processor). >> >> I bring this up because in testing OMPI with hwloc support it looks like >> -bind-to-socket is acting like -bind-to-core on Solaris. I believe the >> issue is hwloc should be returning an error to tell OMPI it cannot >> bind-to-socket or multiple cpus at that. >> >> -- >> <ATT2811223.gif> >> Terry D. Dontje | Principal Software Engineer >> Developer Tools Engineering | +1.650.633.7054 >> Oracle - Performance Technologies >> 95 Network Drive, Burlington, MA 01803 >> Email terry.don...@oracle.com >> -- >> <ATT2811225.gif> >> Terry D. Dontje | Principal Software Engineer >> Developer Tools Engineering | +1.650.633.7054 >> Oracle - Performance Technologies >> 95 Network Drive, Burlington, MA 01803 >> Email terry.don...@oracle.com >> >> >> _______________________________________________ >> hwloc-users mailing list >> >> hwloc-us...@open-mpi.org >> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users >> >> >> > > _______________________________________________ > hwloc-users mailing list > hwloc-us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/