1
1
openmpi/ompi/mpiext/affinity
Jeff Squyres b0b17c62aa Protect against orte_proc_applied_binding being NULL.
It is now possible for orte_proc_applied_binding to be NULL (e.g., if
you mpirun --bind-to none), so we need to ensure we don't pass it down
to opal_hwloc_base_cset2*str().

Also, take the opprotunity to de-duplicate some strings that are used
in multiple places.

Refs trac:4073

This commit was SVN r30204.

The following Trac tickets were found above:
  Ticket 4073 --> https://svn.open-mpi.org/trac/ompi/ticket/4073
2014-01-09 23:38:34 +00:00
..
c Protect against orte_proc_applied_binding being NULL. 2014-01-09 23:38:34 +00:00
configure.m4 == Highlights == 2012-04-18 15:57:29 +00:00
Makefile.am == Highlights == 2012-04-18 15:57:29 +00:00
README.txt == Highlights == 2012-04-18 15:57:29 +00:00

# Copyright (c) 2010-2012 Cisco Systems, Inc.  All rights reserved.
Copyright (c) 2010 Oracle and/or its affiliates.  All rights reserved.

$COPYRIGHT$

Jeff Squyres
19 April 2010, and
16 April 2012

Terry Dontje
18 November 2010

This extension provides a single new function, OMPI_Affinity_str(),
that takes a format value and then provides 3 prettyprint strings as
output:

fmt_type: is an enum that tells OMPI_Affinity_str() whether to use a
resource description string or layout string format for ompi_bound and
currently_bound output strings.

ompi_bound: describes what sockets/cores Open MPI bound this process
to (or indicates that Open MPI did not bind this process).

currently_bound: describes what sockets/cores this process is
currently bound to (or indicates that it is unbound).

exists: describes what processors are available in the current host.

See OMPI_Affinity_str(3) for more details.