1
1
This commit was SVN r32655.
Этот коммит содержится в:
Ralph Castain 2014-08-31 08:06:35 +00:00
родитель 4497dada00
Коммит 9500939042
2 изменённых файлов: 18 добавлений и 4 удалений

Просмотреть файл

@ -29,7 +29,21 @@
#include "base.h"
#include "mpool_base_tree.h"
#include "mpool_base_mem_cb.h"
#include "ompi/info/info.h" /* TODO */
#include "opal/threads/mutex.h"
struct opal_info_t {
opal_list_t super;
/**< generic list pointer which is the container for (key,value)
pairs */
int i_f_to_c_index;
/**< fortran handle for info. This is needed for translation from
fortran to C and vice versa */
opal_mutex_t *i_lock;
/**< Mutex for thread safety */
bool i_freed;
/**< Whether this info has been freed or not */
};
typedef struct opal_info_t opal_info_t;
/**
* Memory Pool Registration
@ -95,7 +109,7 @@ static void unregister_tree_item(mca_mpool_base_tree_item_t *mpool_tree_item)
* @retval pointer to the allocated memory
* @retval NULL on failure
*/
void *mca_mpool_base_alloc(size_t size, ompi_info_t *info)
void *mca_mpool_base_alloc(size_t size, opal_info_t *info)
{
opal_list_item_t * item;
int num_modules = opal_list_get_size(&mca_mpool_base_modules);

Просмотреть файл

@ -38,7 +38,7 @@
#define MCA_MPOOL_FLAGS_SO_MEM 0x10
#define MCA_MPOOL_FLAGS_CUDA_REGISTER_MEM 0x20
struct ompi_info_t;
struct opal_info_t;
#define MCA_MPOOL_FLAGS_CUDA_GPU_MEM 0x40
@ -225,7 +225,7 @@ typedef struct mca_mpool_base_module_t mca_mpool_base_module_t;
* @retval pointer to the allocated memory
* @retval NULL on failure
*/
OPAL_DECLSPEC void * mca_mpool_base_alloc(size_t size, struct ompi_info_t * info);
OPAL_DECLSPEC void * mca_mpool_base_alloc(size_t size, struct opal_info_t * info);
/**
* Function to free memory previously allocated by mca_mpool_base_alloc