2010-04-21 21:28:08 +04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2004-2009 The Trustees of Indiana University.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
2010-12-16 18:11:17 +03:00
|
|
|
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
|
2010-04-21 21:28:08 +04:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define OMPI_AFFINITY_STRING_MAX 1024
|
|
|
|
|
2010-12-16 18:11:17 +03:00
|
|
|
typedef enum ompi_affinity_fmt {
|
|
|
|
OMPI_AFFINITY_RSRC_STRING_FMT,
|
|
|
|
OMPI_AFFINITY_LAYOUT_FMT
|
|
|
|
} ompi_affinity_fmt_t;
|
|
|
|
|
|
|
|
OMPI_DECLSPEC int OMPI_Affinity_str(ompi_affinity_fmt_t fmt_type,
|
|
|
|
char ompi_bound[OMPI_AFFINITY_STRING_MAX],
|
2010-04-21 21:28:08 +04:00
|
|
|
char current_binding[OMPI_AFFINITY_STRING_MAX],
|
|
|
|
char exists[OMPI_AFFINITY_STRING_MAX]);
|