
- moved mem/free_list.h to class/ompi_free_list.h - moved mem/malloc.h to util/malloc.h - added src/mca/mpool component type This commit was SVN r1274.
56 строки
1.2 KiB
C
56 строки
1.2 KiB
C
/*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#include "ompi_config.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "mca/mca.h"
|
|
#include "mca/base/base.h"
|
|
#include "mca/mpool/mpool.h"
|
|
#include "mca/mpool/base/base.h"
|
|
|
|
|
|
/*
|
|
* The following file was created by configure. It contains extern
|
|
* statements and the definition of an array of pointers to each
|
|
* module's public mca_base_module_t struct.
|
|
*/
|
|
|
|
#include "mca/mpool/base/static-modules.h"
|
|
|
|
|
|
/*
|
|
* Global variables
|
|
*/
|
|
int mca_mpool_base_output = -1;
|
|
ompi_list_t mca_mpool_base_modules_available;
|
|
ompi_list_t mca_mpool_base_modules_initialized;
|
|
|
|
|
|
/**
|
|
* Function for finding and opening either all MCA modules, or the one
|
|
* that was specifically requested via a MCA parameter.
|
|
*/
|
|
int mca_mpool_base_open(void)
|
|
{
|
|
/* Open up all available modules */
|
|
|
|
if (OMPI_SUCCESS !=
|
|
mca_base_modules_open("mpool", 0, mca_mpool_base_static_modules,
|
|
&mca_mpool_base_modules_available)) {
|
|
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_initialized, ompi_list_t);
|
|
|
|
/* All done */
|
|
|
|
return OMPI_SUCCESS;
|
|
}
|