1
1

* rename ompi_object and ompi_class to opal_object and opal_class

This commit was SVN r6321.
This commit is contained in:
Brian Barrett 2005-07-03 16:06:07 +00:00
parent 64d68d88ad
commit 499e4de1e7
169 changed files with 417 additions and 417 deletions

View File

@ -351,7 +351,7 @@ typedef enum ompi_attribute_translate_t {
* struct to hold attribute values on each MPI object
*/
typedef struct attribute_value_t {
ompi_object_t super;
opal_object_t super;
void *av_value;
MPI_Aint *av_address_kind_pointer;
MPI_Fint *av_integer_pointer;
@ -380,7 +380,7 @@ static MPI_Aint translate_to_fortran_mpi2(attribute_value_t *val);
* attribute_value_t class
*/
static OBJ_CLASS_INSTANCE(attribute_value_t,
ompi_object_t,
opal_object_t,
attribute_value_construct,
NULL);
@ -389,7 +389,7 @@ static OBJ_CLASS_INSTANCE(attribute_value_t,
* ompi_attribute_entry_t classes
*/
static OBJ_CLASS_INSTANCE(ompi_attrkey_item_t,
ompi_object_t,
opal_object_t,
ompi_attrkey_item_construct,
ompi_attrkey_item_destruct);
@ -433,7 +433,7 @@ static void
ompi_attrkey_item_construct(ompi_attrkey_item_t *item)
{
memset(&(item->attr_type), 0,
sizeof(ompi_attrkey_item_t) - sizeof(ompi_object_t));
sizeof(ompi_attrkey_item_t) - sizeof(opal_object_t));
}

View File

@ -28,7 +28,7 @@
#include "ompi_config.h"
#include "include/constants.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "class/ompi_bitmap.h"
#include "class/ompi_hash_table.h"
#include "mca/gpr/gpr_types.h"
@ -139,7 +139,7 @@ union ompi_attribute_fortran_ptr_t {
typedef union ompi_attribute_fortran_ptr_t ompi_attribute_fortran_ptr_t;
struct ompi_attrkey_item_t {
ompi_object_t super;
opal_object_t super;
ompi_attribute_type_t attr_type; /**< One of COMM/WIN/DTYPE. This
will be used to cast the
copy/delete attribute functions

View File

@ -27,7 +27,7 @@
static void ompi_bitmap_construct(ompi_bitmap_t *bm);
static void ompi_bitmap_destruct(ompi_bitmap_t *bm);
OBJ_CLASS_INSTANCE(ompi_bitmap_t, ompi_object_t,
OBJ_CLASS_INSTANCE(ompi_bitmap_t, opal_object_t,
ompi_bitmap_construct, ompi_bitmap_destruct);

View File

@ -114,13 +114,13 @@
#include <string.h>
#include "include/types.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
struct ompi_bitmap_t {
ompi_object_t super; /**< Subclass of ompi_object_t */
opal_object_t super; /**< Subclass of opal_object_t */
unsigned char *bitmap; /**< The actual bitmap array of characters */
int array_size; /**< The actual array size that maintains the bitmap */
int legal_numbits; /**< The number of bits which are legal (the

View File

@ -24,11 +24,11 @@ static void ompi_free_list_construct(ompi_free_list_t* fl);
static void ompi_free_list_destruct(ompi_free_list_t* fl);
ompi_class_t ompi_free_list_t_class = {
opal_class_t ompi_free_list_t_class = {
"ompi_free_list_t",
OBJ_CLASS(ompi_list_t),
(ompi_construct_t)ompi_free_list_construct,
(ompi_destruct_t)ompi_free_list_destruct
(opal_construct_t)ompi_free_list_construct,
(opal_destruct_t)ompi_free_list_destruct
};
@ -52,7 +52,7 @@ static void ompi_free_list_destruct(ompi_free_list_t* fl)
int ompi_free_list_init(
ompi_free_list_t *flist,
size_t elem_size,
ompi_class_t* elem_class,
opal_class_t* elem_class,
int num_elements_to_alloc,
int max_elements_to_alloc,
int num_elements_per_alloc,

View File

@ -27,7 +27,7 @@
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OMPI_DECLSPEC extern ompi_class_t ompi_free_list_t_class;
OMPI_DECLSPEC extern opal_class_t ompi_free_list_t_class;
struct mca_mem_pool_t;
@ -39,7 +39,7 @@ struct ompi_free_list_t
size_t fl_num_per_alloc;
size_t fl_num_waiting;
size_t fl_elem_size;
ompi_class_t* fl_elem_class;
opal_class_t* fl_elem_class;
mca_mpool_base_module_t* fl_mpool;
ompi_mutex_t fl_lock;
ompi_condition_t fl_condition;
@ -59,7 +59,7 @@ typedef struct ompi_free_list_item_t ompi_free_list_item_t;
*
* @param free_list (IN) Free list.
* @param element_size (IN) Size of each element.
* @param element_class (IN) ompi_class_t of element - used to initialize allocated elements.
* @param element_class (IN) opal_class_t of element - used to initialize allocated elements.
* @param num_elements_to_alloc Initial number of elements to allocate.
* @param max_elements_to_alloc Maximum number of elements to allocate.
* @param num_elements_per_alloc Number of elements to grow by per allocation.
@ -69,7 +69,7 @@ typedef struct ompi_free_list_item_t ompi_free_list_item_t;
OMPI_DECLSPEC int ompi_free_list_init(
ompi_free_list_t *free_list,
size_t element_size,
ompi_class_t* element_class,
opal_class_t* element_class,
int num_elements_to_alloc,
int max_elements_to_alloc,
int num_elements_per_alloc,

View File

@ -30,7 +30,7 @@ static void ompi_pointer_array_construct(ompi_pointer_array_t *);
static void ompi_pointer_array_destruct(ompi_pointer_array_t *);
static bool grow_table(ompi_pointer_array_t *table, size_t soft, size_t hard);
OBJ_CLASS_INSTANCE(ompi_pointer_array_t, ompi_object_t,
OBJ_CLASS_INSTANCE(ompi_pointer_array_t, opal_object_t,
ompi_pointer_array_construct,
ompi_pointer_array_destruct);

View File

@ -32,7 +32,7 @@
#include "ompi_config.h"
#include "threads/mutex.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
@ -43,7 +43,7 @@ extern "C" {
*/
struct ompi_pointer_array_t {
/** base class */
ompi_object_t super;
opal_object_t super;
/** synchronization object */
ompi_mutex_t lock;
/** Index of lowest free element. NOTE: This is only an

View File

@ -23,7 +23,7 @@
/* declare the instance of the classes */
OBJ_CLASS_INSTANCE(ompi_rb_tree_node_t, ompi_list_item_t, NULL, NULL);
OBJ_CLASS_INSTANCE(ompi_rb_tree_t, ompi_object_t, ompi_rb_tree_construct,
OBJ_CLASS_INSTANCE(ompi_rb_tree_t, opal_object_t, ompi_rb_tree_construct,
ompi_rb_tree_destruct);
/* Private functions */
@ -43,7 +43,7 @@ static void inorder_traversal(ompi_rb_tree_t *tree,
/* constructor */
void ompi_rb_tree_construct(ompi_object_t * object)
void ompi_rb_tree_construct(opal_object_t * object)
{
ompi_rb_tree_t * tree = (ompi_rb_tree_t *) object;
tree->root_ptr = NULL;
@ -54,7 +54,7 @@ void ompi_rb_tree_construct(ompi_object_t * object)
}
/* the destructor function */
void ompi_rb_tree_destruct(ompi_object_t * object)
void ompi_rb_tree_destruct(opal_object_t * object)
{
if(NULL != ((ompi_rb_tree_t *)object)->root_ptr) {
ompi_rb_tree_destroy((ompi_rb_tree_t *) object);

View File

@ -25,7 +25,7 @@
#include <stdlib.h>
#include "include/constants.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "class/ompi_free_list.h"
#if defined(c_plusplus) || defined(__cplusplus)
@ -64,7 +64,7 @@ typedef int (*ompi_rb_tree_comp_fn_t)(void *key1, void *key2);
* the data structure that holds all the needed information about the tree.
*/
struct ompi_rb_tree_t {
ompi_object_t parent; /**< the parent class */
opal_object_t parent; /**< the parent class */
/* this root pointer doesn't actually point to the root of the tree.
* rather, it points to a sentinal node who's left branch is the real
* root of the tree. This is done to eliminate special cases */
@ -107,14 +107,14 @@ typedef void (*ompi_rb_tree_action_fn_t)(void *, void *);
*
* @retval NONE
*/
OMPI_DECLSPEC void ompi_rb_tree_construct(ompi_object_t * object);
OMPI_DECLSPEC void ompi_rb_tree_construct(opal_object_t * object);
/**
* the destruct function. tries to free the tree and destroys the free list
*
* @param object the tree object
*/
OMPI_DECLSPEC void ompi_rb_tree_destruct(ompi_object_t * object);
OMPI_DECLSPEC void ompi_rb_tree_destruct(opal_object_t * object);
/**
* the function creates a new tree

View File

@ -47,7 +47,7 @@ ompi_communicator_t *ompi_mpi_comm_parent;
static void ompi_comm_construct(ompi_communicator_t* comm);
static void ompi_comm_destruct(ompi_communicator_t* comm);
OBJ_CLASS_INSTANCE(ompi_communicator_t,ompi_object_t,ompi_comm_construct,ompi_comm_destruct);
OBJ_CLASS_INSTANCE(ompi_communicator_t,opal_object_t,ompi_comm_construct,ompi_comm_destruct);
/* This is the counter for the number of communicators, which contain
process with more than one jobid. This counter is a usefull

View File

@ -17,7 +17,7 @@
#ifndef OMPI_COMMUNICATOR_H
#define OMPI_COMMUNICATOR_H
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "class/ompi_hash_table.h"
#include "errhandler/errhandler.h"
#include "threads/mutex.h"
@ -34,7 +34,7 @@
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OMPI_DECLSPEC extern ompi_class_t ompi_communicator_t_class;
OMPI_DECLSPEC extern opal_class_t ompi_communicator_t_class;
#define OMPI_COMM_INTER 0x00000001
#define OMPI_COMM_CART 0x00000002
@ -89,7 +89,7 @@ OMPI_DECLSPEC extern ompi_class_t ompi_communicator_t_class;
OMPI_DECLSPEC extern ompi_pointer_array_t ompi_mpi_communicators;
struct ompi_communicator_t {
ompi_object_t c_base;
opal_object_t c_base;
ompi_mutex_t c_lock; /* mutex for name and potentially
attributes */
char c_name[MPI_MAX_OBJECT_NAME];

View File

@ -66,7 +66,7 @@ static void ompi_convertor_destruct( ompi_convertor_t* convertor )
ompi_convertor_cleanup( convertor );
}
OBJ_CLASS_INSTANCE(ompi_convertor_t, ompi_object_t, ompi_convertor_construct, ompi_convertor_destruct );
OBJ_CLASS_INSTANCE(ompi_convertor_t, opal_object_t, ompi_convertor_construct, ompi_convertor_destruct );
/*

View File

@ -71,7 +71,7 @@ typedef struct dt_stack {
#define DT_STATIC_STACK_SIZE 5
struct ompi_convertor_t {
ompi_object_t super; /**< basic superclass */
opal_object_t super; /**< basic superclass */
uint32_t remoteArch; /**< the remote architecture */
uint32_t flags; /**< the properties of this convertor */
const struct ompi_datatype_t* pDesc; /**< the datatype description associated with the convertor */

View File

@ -35,7 +35,7 @@
#endif
#include <string.h>
#include "include/constants.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "class/ompi_hash_table.h"
#include "class/ompi_pointer_array.h"
#include "mpi.h"
@ -87,7 +87,7 @@ typedef struct dt_type_desc {
/* the data description.
*/
typedef struct ompi_datatype_t {
ompi_object_t super; /**< basic superclass */
opal_object_t super; /**< basic superclass */
unsigned long size; /**< total size in bytes of the memory used by the data if
* the data is put on a contiguous buffer */
uint32_t align; /**< data should be aligned to */

View File

@ -70,7 +70,7 @@ static void __destroy_ddt_struct( ompi_datatype_t* pData )
}
OBJ_CLASS_INSTANCE(ompi_datatype_t, ompi_object_t, __get_free_dt_struct, __destroy_ddt_struct );
OBJ_CLASS_INSTANCE(ompi_datatype_t, opal_object_t, __get_free_dt_struct, __destroy_ddt_struct );
ompi_datatype_t* ompi_ddt_create( int32_t expectedSize )
{

View File

@ -86,7 +86,7 @@ ompi_errclass_t ompi_errclass_win;
static void ompi_errclass_construct(ompi_errclass_t* errcode);
static void ompi_errclass_destruct(ompi_errclass_t* errcode);
OBJ_CLASS_INSTANCE(ompi_errclass_t,ompi_object_t,ompi_errclass_construct, ompi_errclass_destruct);
OBJ_CLASS_INSTANCE(ompi_errclass_t,opal_object_t,ompi_errclass_construct, ompi_errclass_destruct);
int ompi_errclass_init (void)
{

View File

@ -21,7 +21,7 @@
#include "ompi_config.h"
#include "mpi.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "class/ompi_pointer_array.h"
#if defined(c_plusplus) || defined(__cplusplus)
@ -33,7 +33,7 @@ extern "C" {
* to trivial.
*/
struct ompi_errclass_t {
ompi_object_t super;
opal_object_t super;
int cls;
};
typedef struct ompi_errclass_t ompi_errclass_t;

View File

@ -49,7 +49,7 @@ static ompi_errcode_intern_t ompi_err_buffer;
static void ompi_errcode_intern_construct(ompi_errcode_intern_t* errcode);
static void ompi_errcode_intern_destruct(ompi_errcode_intern_t* errcode);
OBJ_CLASS_INSTANCE(ompi_errcode_intern_t,ompi_object_t,ompi_errcode_intern_construct, ompi_errcode_intern_destruct);
OBJ_CLASS_INSTANCE(ompi_errcode_intern_t,opal_object_t,ompi_errcode_intern_construct, ompi_errcode_intern_destruct);
int ompi_errcode_intern_init (void)
{

View File

@ -22,7 +22,7 @@
#include "mpi.h"
#include "include/constants.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "class/ompi_pointer_array.h"
#define OMPI_MAX_ERROR_STRING 64
@ -33,7 +33,7 @@ extern "C" {
* Back-end type for MPI error codes
*/
struct ompi_errcode_intern_t {
ompi_object_t super;
opal_object_t super;
int code;
int mpi_code;
int index;

View File

@ -87,7 +87,7 @@ ompi_mpi_errcode_t ompi_err_win;
static void ompi_mpi_errcode_construct(ompi_mpi_errcode_t* errcode);
static void ompi_mpi_errcode_destruct(ompi_mpi_errcode_t* errcode);
OBJ_CLASS_INSTANCE(ompi_mpi_errcode_t,ompi_object_t,ompi_mpi_errcode_construct, ompi_mpi_errcode_destruct);
OBJ_CLASS_INSTANCE(ompi_mpi_errcode_t,opal_object_t,ompi_mpi_errcode_construct, ompi_mpi_errcode_destruct);
int ompi_mpi_errcode_init (void)
{

View File

@ -21,7 +21,7 @@
#include "ompi_config.h"
#include "mpi.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "class/ompi_pointer_array.h"
#if defined(c_plusplus) || defined(__cplusplus)
@ -32,7 +32,7 @@ extern "C" {
* Back-end type for MPI error codes
*/
struct ompi_mpi_errcode_t {
ompi_object_t super;
opal_object_t super;
int code;
int cls;
char errstring[MPI_MAX_ERROR_STRING];

View File

@ -40,7 +40,7 @@ static void ompi_errhandler_destruct(ompi_errhandler_t *eh);
/*
* Class instance
*/
OBJ_CLASS_INSTANCE(ompi_errhandler_t, ompi_object_t, ompi_errhandler_construct,
OBJ_CLASS_INSTANCE(ompi_errhandler_t, opal_object_t, ompi_errhandler_construct,
ompi_errhandler_destruct);

View File

@ -21,7 +21,7 @@
#include "ompi_config.h"
#include "mpi.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "class/ompi_pointer_array.h"
#include "ompi/runtime/mpiruntime.h"
#include "errhandler/errhandler_predefined.h"
@ -68,7 +68,7 @@ typedef enum ompi_errhandler_type_t ompi_errhandler_type_t;
* Back-end type for MPI_Errorhandler.
*/
struct ompi_errhandler_t {
ompi_object_t super;
opal_object_t super;
char eh_name[MPI_MAX_OBJECT_NAME];
/* Type of MPI object that this handler is for */

View File

@ -45,7 +45,7 @@ static void file_destructor(ompi_file_t *obj);
* Class instance for ompi_file_t
*/
OBJ_CLASS_INSTANCE(ompi_file_t,
ompi_object_t,
opal_object_t,
file_constructor,
file_destructor);

View File

@ -38,7 +38,7 @@ extern "C" {
*/
struct ompi_file_t {
/** Base of OBJ_* interface */
ompi_object_t super;
opal_object_t super;
/** Communicator that this file was created with */
struct ompi_communicator_t *f_comm;

View File

@ -33,7 +33,7 @@ extern "C" {
* Group structure
*/
struct ompi_group_t {
ompi_object_t super; /**< base class */
opal_object_t super; /**< base class */
int grp_proc_count; /**< number of processes in group */
int grp_my_rank; /**< rank in group */
int grp_f_to_c_index; /**< index in Fortran <-> C translation array */

View File

@ -24,7 +24,7 @@ static void ompi_group_construct(ompi_group_t *);
static void ompi_group_destruct(ompi_group_t *);
OBJ_CLASS_INSTANCE(ompi_group_t,
ompi_object_t,
opal_object_t,
ompi_group_construct,
ompi_group_destruct);

View File

@ -24,7 +24,7 @@
#include <stdlib.h>
#include <string.h>
#include "threads/mutex.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "class/ompi_free_list.h"
#include "mca/allocator/allocator.h"

View File

@ -24,7 +24,7 @@
#include <stdlib.h>
#include <string.h>
#include "threads/mutex.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "mca/allocator/allocator.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {

View File

@ -18,7 +18,7 @@
#define MCA_BTL_GM_PROC_H
#include "mca/ns/ns.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "proc/proc.h"
#include "btl_gm.h"
#include "btl_gm_endpoint.h"

View File

@ -18,7 +18,7 @@
#define MCA_BTL_IB_PROC_H
#include "mca/ns/ns.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "proc/proc.h"
#include "btl_mvapi.h"
#include "btl_mvapi_endpoint.h"

View File

@ -18,7 +18,7 @@
#define MCA_BTL_IB_PROC_H
#include "mca/ns/ns.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "proc/proc.h"
#include "btl_openib.h"
#include "btl_openib_endpoint.h"

View File

@ -330,7 +330,7 @@ typedef struct mca_btl_sm_exchange{
}mca_btl_sm_exchange_t;
#if OMPI_ENABLE_PROGRESS_THREADS == 1
void mca_btl_sm_component_event_thread(ompi_object_t*);
void mca_btl_sm_component_event_thread(opal_object_t*);
#endif
#if OMPI_ENABLE_PROGRESS_THREADS == 1

View File

@ -296,7 +296,7 @@ mca_btl_base_module_t** mca_btl_sm_component_init(
*/
#if OMPI_ENABLE_PROGRESS_THREADS == 1
void mca_btl_sm_component_event_thread(ompi_object_t* thread)
void mca_btl_sm_component_event_thread(opal_object_t* thread)
{
while(1) {
unsigned char cmd;

View File

@ -18,7 +18,7 @@
#define MCA_BTL_TEMPLATE_PROC_H
#include "mca/ns/ns.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "proc/proc.h"
#include "btl_template.h"
#include "btl_template_endpoint.h"

View File

@ -25,7 +25,7 @@
#include "util/argv.h"
#include "util/show_help.h"
#include "class/ompi_list.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "mca/mca.h"
#include "mca/base/base.h"
#include "mca/coll/coll.h"

View File

@ -40,7 +40,7 @@
OBJ_CLASS_INSTANCE(
mca_common_sm_mmap_t,
ompi_object_t,
opal_object_t,
NULL,
NULL
);

View File

@ -19,7 +19,7 @@
#include "ompi_config.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "class/ompi_list.h"
#include "include/sys/atomic.h"
#include "mca/mpool/mpool.h"

View File

@ -25,7 +25,7 @@
#include "util/argv.h"
#include "util/output.h"
#include "class/ompi_list.h"
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "mca/mca.h"
#include "mca/base/base.h"
#include "mca/io/io.h"

View File

@ -20,7 +20,7 @@
#include <sys/time.h>
#endif
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "file/file.h"
#include "mca/base/base.h"
#include "mca/base/mca_base_param.h"
@ -238,7 +238,7 @@ static ompi_mutex_t progress_mutex;
static ompi_condition_t progress_cond;
static void*
request_progress_thread(ompi_object_t *arg)
request_progress_thread(opal_object_t *arg)
{
struct timespec abstime;
struct timeval tv;

View File

@ -22,7 +22,7 @@
#ifndef IO_BASE_REQUEST_H
#define IO_BASE_REQUEST_H
#include "class/ompi_object.h"
#include "opal/class/opal_object.h"
#include "request/request.h"
#include "file/file.h"
#include "mca/io/base/base.h"

View File

@ -82,7 +82,7 @@ OBJ_CLASS_INSTANCE(
* received from peers.
*/
struct mca_base_modex_t {
ompi_object_t super;
opal_object_t super;
ompi_list_t modex_modules;
};
typedef struct mca_base_modex_t mca_base_modex_t;
@ -99,7 +99,7 @@ static void mca_base_modex_destruct(mca_base_modex_t* modex)
OBJ_CLASS_INSTANCE(
mca_base_modex_t,
ompi_object_t,
opal_object_t,
mca_base_modex_construct,
mca_base_modex_destruct
);

View File

@ -25,11 +25,11 @@ static void mca_pml_base_recv_request_construct(mca_pml_base_recv_request_t*);
static void mca_pml_base_recv_request_destruct(mca_pml_base_recv_request_t*);
ompi_class_t mca_pml_base_recv_request_t_class = {
opal_class_t mca_pml_base_recv_request_t_class = {
"mca_pml_base_recv_request_t",
OBJ_CLASS(mca_pml_base_request_t),
(ompi_construct_t) mca_pml_base_recv_request_construct,
(ompi_destruct_t) mca_pml_base_recv_request_destruct
(opal_construct_t) mca_pml_base_recv_request_construct,
(opal_destruct_t) mca_pml_base_recv_request_destruct
};

View File

@ -28,11 +28,11 @@ static void mca_pml_base_request_destruct(mca_pml_base_request_t* req)
{
}
ompi_class_t mca_pml_base_request_t_class = {
opal_class_t mca_pml_base_request_t_class = {
"mca_pml_base_request_t",
OBJ_CLASS(ompi_request_t),
(ompi_construct_t) mca_pml_base_request_construct,
(ompi_destruct_t) mca_pml_base_request_destruct
(opal_construct_t) mca_pml_base_request_construct,
(opal_destruct_t) mca_pml_base_request_destruct
};

View File

@ -26,7 +26,7 @@
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OMPI_DECLSPEC extern ompi_class_t mca_pml_base_request_t_class;
OMPI_DECLSPEC extern opal_class_t mca_pml_base_request_t_class;
/**
* Type of request.

View File

@ -22,11 +22,11 @@ static void mca_pml_base_send_request_construct(mca_pml_base_send_request_t* req
static void mca_pml_base_send_request_destruct(mca_pml_base_send_request_t* req);
ompi_class_t mca_pml_base_send_request_t_class = {
opal_class_t mca_pml_base_send_request_t_class = {
"mca_pml_base_send_request_t",
OBJ_CLASS(mca_pml_base_request_t),
(ompi_construct_t) mca_pml_base_send_request_construct,
(ompi_destruct_t) mca_pml_base_send_request_destruct
(opal_construct_t) mca_pml_base_send_request_construct,
(opal_destruct_t) mca_pml_base_send_request_destruct
};

View File

@ -28,7 +28,7 @@
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OMPI_DECLSPEC extern ompi_class_t mca_pml_base_send_request_t_class;
OMPI_DECLSPEC extern opal_class_t mca_pml_base_send_request_t_class;
/**

View File

@ -41,7 +41,7 @@ static void mca_pml_ob1_comm_proc_destruct(mca_pml_ob1_comm_proc_t* proc)
static OBJ_CLASS_INSTANCE(
mca_pml_ob1_comm_proc_t,
ompi_object_t,
opal_object_t,
mca_pml_ob1_comm_proc_construct,
mca_pml_ob1_comm_proc_destruct);
@ -70,7 +70,7 @@ static void mca_pml_ob1_comm_destruct(mca_pml_ob1_comm_t* comm)
OBJ_CLASS_INSTANCE(
mca_pml_ob1_comm_t,
ompi_object_t,
opal_object_t,
mca_pml_ob1_comm_construct,
mca_pml_ob1_comm_destruct);

View File

@ -29,7 +29,7 @@ extern "C" {
struct mca_pml_ob1_comm_proc_t {
ompi_object_t super;
opal_object_t super;
uint16_t expected_sequence; /**< send message sequence number - receiver side */
ompi_list_t frags_cant_match; /**< out-of-order fragment queues */
ompi_list_t specific_receives; /**< queues of unmatched specific receives */
@ -43,7 +43,7 @@ typedef struct mca_pml_ob1_comm_proc_t mca_pml_ob1_comm_proc_t;
* used by the PML<->PTL interface for matching logic.
*/
struct mca_pml_comm_t {
ompi_object_t super;
opal_object_t super;
mca_ptl_sequence_t recv_sequence; /**< recv request sequence number - receiver side */
ompi_mutex_t matching_lock; /**< matching lock */
ompi_list_t wild_receives; /**< queue of unmatched wild (source process not specified) receives */

View File

@ -39,7 +39,7 @@ static void mca_pml_ob1_ep_array_destruct(mca_pml_ob1_ep_array_t* array)
OBJ_CLASS_INSTANCE(
mca_pml_ob1_ep_array_t,
ompi_object_t,
opal_object_t,
mca_pml_ob1_ep_array_construct,
mca_pml_ob1_ep_array_destruct
);

View File

@ -60,7 +60,7 @@ typedef struct mca_pml_ob1_endpoint_t mca_pml_ob1_endpoint_t;
* scheduling across contents.
*/
struct mca_pml_ob1_ep_array_t {
ompi_object_t super;
opal_object_t super;
size_t arr_size; /**< number available */
size_t arr_reserve; /**< size of allocated btl_proc array */
size_t arr_index; /**< last used index*/

View File

@ -43,7 +43,7 @@ static void mca_pml_ob1_proc_destruct(mca_pml_ob1_proc_t* proc)
OBJ_CLASS_INSTANCE(
mca_pml_ob1_proc_t,
ompi_object_t,
opal_object_t,
mca_pml_ob1_proc_construct,
mca_pml_ob1_proc_destruct
);

View File

@ -33,7 +33,7 @@ extern "C" {
* to the PML.
*/
struct mca_pml_proc_t {
ompi_object_t super;
opal_object_t super;
ompi_proc_t *proc_ompi; /**< back-pointer to ompi_proc_t */
ompi_mutex_t proc_lock; /**< lock to protect against concurrent access */
int proc_flags; /**< prefered method of accessing this peer */

View File

@ -39,7 +39,7 @@ static void mca_ptl_array_destruct(mca_ptl_array_t* array)
OBJ_CLASS_INSTANCE(
mca_pml_teg_ptl_array_t,
ompi_object_t,
opal_object_t,
mca_ptl_array_construct,
mca_ptl_array_destruct
);

View File

@ -25,7 +25,7 @@
extern "C" {
#endif
extern ompi_class_t mca_pml_teg_ptl_array_t_class;
extern opal_class_t mca_pml_teg_ptl_array_t_class;
/**
* A data structure associated with a ompi_proc_t that caches
@ -46,7 +46,7 @@ typedef struct mca_ptl_proc_t mca_ptl_proc_t;
* scheduling across contents.
*/
struct mca_ptl_array_t {
ompi_object_t super;
opal_object_t super;
mca_ptl_proc_t* ptl_procs; /**< array of ptl procs */
size_t ptl_size; /**< number available */
size_t ptl_reserve; /**< size of allocated ptl_proc array */

View File

@ -43,7 +43,7 @@ struct mca_pml_proc_t {
typedef struct mca_pml_proc_t mca_pml_proc_t;
OMPI_COMP_EXPORT extern ompi_class_t mca_pml_teg_proc_t_class;
OMPI_COMP_EXPORT extern opal_class_t mca_pml_teg_proc_t_class;
typedef struct mca_pml_proc_t mca_pml_teg_proc_t;
/**

View File

@ -25,7 +25,7 @@
#include "pml_teg_proc.h"
OMPI_DECLSPEC extern ompi_class_t mca_ptl_base_recv_frag_t_class;
OMPI_DECLSPEC extern opal_class_t mca_ptl_base_recv_frag_t_class;
/**

View File

@ -62,7 +62,7 @@ extern "C" {
typedef struct mca_pml_proc_t mca_pml_proc_t;
OMPI_COMP_EXPORT extern ompi_class_t mca_pml_uniq_proc_t_class;
OMPI_COMP_EXPORT extern opal_class_t mca_pml_uniq_proc_t_class;
typedef struct mca_pml_proc_t mca_pml_uniq_proc_t;
/**

View File

@ -25,7 +25,7 @@
#include "pml_uniq_proc.h"
OMPI_DECLSPEC extern ompi_class_t mca_ptl_base_recv_frag_t_class;
OMPI_DECLSPEC extern opal_class_t mca_ptl_base_recv_frag_t_class;
/**

View File

@ -24,11 +24,11 @@ static void mca_pml_ptl_comm_construct(mca_pml_ptl_comm_t* comm);
static void mca_pml_ptl_comm_destruct(mca_pml_ptl_comm_t* comm);
ompi_class_t mca_pml_ptl_comm_t_class = {
opal_class_t mca_pml_ptl_comm_t_class = {
"mca_pml_ptl_comm_t",
OBJ_CLASS(ompi_object_t),
(ompi_construct_t)mca_pml_ptl_comm_construct,
(ompi_destruct_t)mca_pml_ptl_comm_destruct
OBJ_CLASS(opal_object_t),
(opal_construct_t)mca_pml_ptl_comm_construct,
(opal_destruct_t)mca_pml_ptl_comm_destruct
};

View File

@ -26,14 +26,14 @@
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OMPI_DECLSPEC extern ompi_class_t mca_pml_ptl_comm_t_class;
OMPI_DECLSPEC extern opal_class_t mca_pml_ptl_comm_t_class;
/**
* Cached on ompi_communicator_t to hold queues/state
* used by the PML<->PTL interface for matching logic.
*/
struct mca_pml_comm_t {
ompi_object_t super;
opal_object_t super;
uint32_t *c_msg_seq; /**< send message sequence number - sender side */
uint16_t *c_next_msg_seq; /**< send message sequence number - receiver side */
mca_ptl_sequence_t c_recv_seq; /**< recv request sequence number - receiver side */

View File

@ -23,11 +23,11 @@ static void mca_ptl_base_frag_construct(mca_ptl_base_frag_t* frag);
static void mca_ptl_base_frag_destruct(mca_ptl_base_frag_t* frag);
ompi_class_t mca_ptl_base_frag_t_class = {
opal_class_t mca_ptl_base_frag_t_class = {
"mca_ptl_base_frag_t",
OBJ_CLASS(ompi_list_item_t),
(ompi_construct_t) mca_ptl_base_frag_construct,
(ompi_destruct_t) mca_ptl_base_frag_destruct
(opal_construct_t) mca_ptl_base_frag_construct,
(opal_destruct_t) mca_ptl_base_frag_destruct
};
static void mca_ptl_base_frag_construct(mca_ptl_base_frag_t* frag)

View File

@ -27,7 +27,7 @@
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OMPI_DECLSPEC extern ompi_class_t mca_ptl_base_recv_frag_t_class;
OMPI_DECLSPEC extern opal_class_t mca_ptl_base_recv_frag_t_class;
/**
* Base type for receive fragment descriptors.

View File

@ -23,11 +23,11 @@ static void mca_ptl_base_send_frag_construct(mca_ptl_base_send_frag_t* frag);
static void mca_ptl_base_send_frag_destruct(mca_ptl_base_send_frag_t* frag);
ompi_class_t mca_ptl_base_send_frag_t_class = {
opal_class_t mca_ptl_base_send_frag_t_class = {
"mca_ptl_base_send_frag_t",
OBJ_CLASS(mca_ptl_base_frag_t),
(ompi_construct_t) mca_ptl_base_send_frag_construct,
(ompi_destruct_t) mca_ptl_base_send_frag_destruct
(opal_construct_t) mca_ptl_base_send_frag_construct,
(opal_destruct_t) mca_ptl_base_send_frag_destruct
};

View File

@ -25,7 +25,7 @@
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OMPI_DECLSPEC extern ompi_class_t mca_ptl_base_send_frag_t_class;
OMPI_DECLSPEC extern opal_class_t mca_ptl_base_send_frag_t_class;
/**