1 /*
2 * Copyright (c) 2004-2009 The Trustees of Indiana University.
3 * All rights reserved.
4 * Copyright (c) 2010-2012 Cisco Systems, Inc. All rights reserved.
5 * Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
6 * $COPYRIGHT$
7 *
8 * Additional copyrights may follow
9 *
10 * $HEADER$
11 *
12 */
13
14 #define OMPI_AFFINITY_STRING_MAX 1024
15
16 typedef enum ompi_affinity_fmt {
17 OMPI_AFFINITY_RSRC_STRING_FMT,
18 OMPI_AFFINITY_LAYOUT_FMT
19 } ompi_affinity_fmt_t;
20
21 OMPI_DECLSPEC int OMPI_Affinity_str(ompi_affinity_fmt_t fmt_type,
22 char ompi_bound[OMPI_AFFINITY_STRING_MAX],
23 char current_binding[OMPI_AFFINITY_STRING_MAX],
24 char exists[OMPI_AFFINITY_STRING_MAX]);