/** * Function for finding and opening either all MCA components, or the one * that was specifically requested via a MCA parameter. */ static int mca_mpool_base_open(mca_base_open_flag_t flags) { /* Open up all available components - and populate the opal_mpool_base_framework.framework_components list */ if (OPAL_SUCCESS != mca_base_framework_components_open(&opal_mpool_base_framework, flags)) { return OPAL_ERROR; } if (mca_mpool_base_default_hints) { mca_mpool_base_default_module = mca_mpool_base_module_lookup (mca_mpool_base_default_hints); } /* Initialize the list so that in mca_mpool_base_close(), we can iterate over it (even if it's empty, as in the case of opal_info) */ OBJ_CONSTRUCT(&mca_mpool_base_modules, opal_list_t); /* setup tree for tracking MPI_Alloc_mem */ mca_mpool_base_tree_init(); return OPAL_SUCCESS; }
/** * Function for finding and opening either all MCA components, or the one * that was specifically requested via a MCA parameter. */ static int mca_mpool_base_open(mca_base_open_flag_t flags) { /* Open up all available components - and populate the ompi_mpool_base_framework.framework_components list */ if (OMPI_SUCCESS != mca_base_framework_components_open(&ompi_mpool_base_framework, flags)) { return OMPI_ERROR; } /* Initialize the list so that in mca_mpool_base_close(), we can iterate over it (even if it's empty, as in the case of ompi_info) */ OBJ_CONSTRUCT(&mca_mpool_base_modules, opal_list_t); /* get the page size for this architecture*/ mca_mpool_base_page_size = sysconf(_SC_PAGESIZE); mca_mpool_base_page_size_log = my_log2(mca_mpool_base_page_size); /* setup tree for tracking MPI_Alloc_mem */ mca_mpool_base_tree_init(); return OMPI_SUCCESS; }