diff --git a/opal/mca/maffinity/base/base.h b/opal/mca/maffinity/base/base.h index 9536416c40..617d9c3daa 100644 --- a/opal/mca/maffinity/base/base.h +++ b/opal/mca/maffinity/base/base.h @@ -156,6 +156,11 @@ OPAL_DECLSPEC extern opal_list_t opal_maffinity_base_components_opened; */ extern int opal_maffinity_base_output; +/** + * Flag to indicate whether or not maffinity was setup + */ +OPAL_DECLSPEC extern bool opal_maffinity_setup; + END_C_DECLS #endif /* OPAL_MAFFINITY_BASE_H */ diff --git a/opal/mca/maffinity/base/maffinity_base_open.c b/opal/mca/maffinity/base/maffinity_base_open.c index 78cd687629..905036c1ff 100644 --- a/opal/mca/maffinity/base/maffinity_base_open.c +++ b/opal/mca/maffinity/base/maffinity_base_open.c @@ -52,6 +52,7 @@ int opal_maffinity_base_output = -1; bool opal_maffinity_base_components_opened_valid = false; opal_list_t opal_maffinity_base_components_opened; +bool opal_maffinity_setup = false; /* * Function for finding and opening either all MCA components, or the one