2004-06-15 16:56:35 +00:00
|
|
|
/*
|
2005-11-05 19:57:48 +00:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
2006-08-24 16:38:08 +00:00
|
|
|
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
2005-11-05 19:57:48 +00:00
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2004-11-28 20:09:25 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 01:38:40 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-06-15 16:56:35 +00:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*/
|
|
|
|
#ifndef MCA_ALLOCATOR_BASE_H
|
|
|
|
#define MCA_ALLOCATOR_BASE_H
|
|
|
|
|
|
|
|
#include "ompi_config.h"
|
|
|
|
|
2005-07-03 16:22:16 +00:00
|
|
|
#include "opal/class/opal_list.h"
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "ompi/mca/allocator/allocator.h"
|
2004-06-15 16:56:35 +00:00
|
|
|
|
2009-08-20 11:42:18 +00:00
|
|
|
BEGIN_C_DECLS
|
2004-07-12 20:05:29 +00:00
|
|
|
/**
|
|
|
|
* Structure which describes a selected module.
|
|
|
|
*/
|
2004-06-15 16:56:35 +00:00
|
|
|
struct mca_allocator_base_selected_module_t {
|
2005-07-03 16:22:16 +00:00
|
|
|
opal_list_item_t super;
|
|
|
|
/**< Makes this an object of type opal_list_item */
|
2004-08-02 00:24:22 +00:00
|
|
|
mca_allocator_base_component_t *allocator_component;
|
|
|
|
/**< Info about the module */
|
|
|
|
mca_allocator_base_module_t *allocator_module;
|
|
|
|
/**< The function pointers for all the module's functions. */
|
2004-06-15 16:56:35 +00:00
|
|
|
};
|
2004-07-12 20:05:29 +00:00
|
|
|
/**
|
|
|
|
* Convenience typedef.
|
|
|
|
*/
|
2004-06-15 16:56:35 +00:00
|
|
|
typedef struct mca_allocator_base_selected_module_t mca_allocator_base_selected_module_t;
|
2004-07-12 20:05:29 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Declaces mca_mpool_base_selected_module_t as a class.
|
|
|
|
*/
|
2006-08-24 16:38:08 +00:00
|
|
|
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(mca_allocator_base_selected_module_t);
|
2004-06-16 15:41:29 +00:00
|
|
|
|
2004-06-15 16:56:35 +00:00
|
|
|
|
2004-10-22 16:06:05 +00:00
|
|
|
OMPI_DECLSPEC mca_allocator_base_component_t* mca_allocator_component_lookup(const char* name);
|
2004-06-15 16:56:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Globals
|
|
|
|
*/
|
2004-07-12 20:05:29 +00:00
|
|
|
/**
|
2013-03-27 21:17:31 +00:00
|
|
|
* The allocator framework
|
2004-07-12 20:05:29 +00:00
|
|
|
*/
|
2013-03-27 21:17:31 +00:00
|
|
|
OMPI_DECLSPEC extern mca_base_framework_t ompi_allocator_base_framework;
|
2006-08-24 16:38:08 +00:00
|
|
|
|
2009-08-20 11:42:18 +00:00
|
|
|
END_C_DECLS
|
2004-06-15 16:56:35 +00:00
|
|
|
|
|
|
|
#endif /* MCA_ALLOCATOR_BASE_H */
|