1
1

Windows friendly version. We have to split the OMPI_DECLSPEC in at least 3

different macros, one for each project. Therefore, now we have OPAL_DECLSPEC,
ORTE_DECLSPEC and OMPI_DECLSPEC. Please use them based on the sub-project.

This commit was SVN r11270.
Этот коммит содержится в:
George Bosilca 2006-08-20 15:54:04 +00:00
родитель 9b4bab7d34
Коммит 6afa4c6c64
161 изменённых файлов: 701 добавлений и 692 удалений

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

@ -18,6 +18,7 @@
*/
#include "ompi_config.h"
#include "opal/prefetch.h"
#include "ompi/datatype/datatype.h"
#include "ompi/datatype/convertor.h"
#include "ompi/datatype/datatype_internal.h"
@ -206,7 +207,7 @@ int32_t ompi_ddt_copy_content_same_ddt( const ompi_datatype_t* datatype, int32_t
pElem = &(description[pos_desc]);
while( 1 ) {
while( pElem->elem.common.flags & DT_FLAG_DATA ) {
while( OPAL_LIKELY(pElem->elem.common.flags & DT_FLAG_DATA) ) {
/* now here we have a basic datatype */
COPY_PREDEFINED_DATATYPE( pElem, datatype, source_base, count, count_desc,
source, destination, iov_len_local );

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

@ -3,7 +3,7 @@
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* Copyright (c) 2004-2006 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
@ -78,4 +78,26 @@ typedef struct {
} ompi_fortran_double_complex_t;
#endif
#if defined(__WINDOWS__)
# if defined(_USRDLL) /* building shared libraries (.DLL) */
# if defined(OMPI_EXPORTS)
# define OMPI_DECLSPEC __declspec(dllexport)
# else
# define OMPI_DECLSPEC __declspec(dllimport)
# endif
# if defined(OMPI_MODULE_EXPORTS)
# define OMPI_MODULE_DECLSPEC __declspec(dllexport)
# else
# define OMPI_MODULE_DECLSPEC __declspec(dllimport)
# endif
# else /* building static library */
# define OMPI_DECLSPEC
# define OMPI_MODULE_DECLSPEC
# endif
#else
#define OMPI_DECLSPEC
#define OMPI_MODULE_DECLSPEC
#endif /* defined(__WINDOWS__) */
#endif

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

@ -156,7 +156,7 @@ mca_allocator_base_module_t* mca_allocator_basic_component_init(
int mca_allocator_basic_finalize(
mca_allocator_base_module_t * mem);
OMPI_COMP_EXPORT extern mca_allocator_base_component_t mca_allocator_basic_component;
OMPI_DECLSPEC extern mca_allocator_base_component_t mca_allocator_basic_component;
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -207,7 +207,7 @@ typedef struct mca_allocator_bucket_t mca_allocator_bucket_t;
*/
int mca_allocator_bucket_finalize(mca_allocator_base_module_t * mem);
OMPI_COMP_EXPORT extern mca_allocator_base_component_t mca_allocator_bucket_component;
OMPI_DECLSPEC extern mca_allocator_base_component_t mca_allocator_bucket_component;
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -242,6 +242,8 @@ struct mca_bml_base_endpoint_t {
size_t btl_rdma_align; /**< max of min rdma size for available rmda btls */
mca_bml_base_btl_array_t btl_eager; /**< array of btls to use for first fragments */
mca_bml_base_btl_array_t btl_send; /**< array of btls to use for remaining fragments */
size_t bml_max_send_length;
size_t bml_max_rdma_length;
mca_bml_base_btl_array_t btl_rdma; /**< array of btls that support (prefer) rdma */
uint32_t btl_flags_or; /**< the bitwise OR of the btl flags */
uint32_t btl_flags_and; /**< the bitwise AND of the btl flags */
@ -249,7 +251,7 @@ struct mca_bml_base_endpoint_t {
typedef struct mca_bml_base_endpoint_t mca_bml_base_endpoint_t;
OMPI_COMP_EXPORT OBJ_CLASS_DECLARATION(mca_bml_base_endpoint_t);
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(mca_bml_base_endpoint_t);
static inline void mca_bml_base_alloc(mca_bml_base_btl_t* bml_btl, mca_btl_base_descriptor_t** des, size_t size) {
*des = bml_btl->btl_alloc(bml_btl->btl, size);

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

@ -372,23 +372,28 @@ int mca_bml_r2_add_procs(
/* (1) determine the total bandwidth available across all btls
* note that we need to do this here, as we may already have btls configured
* (2) determine the highest priority ranking for latency
* (3) compute the maximum amount of bytes that can be send without any
* weighting. Once the left over is smaller than this number we will
* start using the weight to compute the correct amount.
*/
n_size = mca_bml_base_btl_array_get_size(&bml_endpoint->btl_send);
bml_endpoint->bml_max_send_length = 0;
bml_endpoint->bml_max_rdma_length = 0;
for(n_index = 0; n_index < n_size; n_index++) {
mca_bml_base_btl_t* bml_btl =
mca_bml_base_btl_array_get_index(&bml_endpoint->btl_send, n_index);
mca_btl_base_module_t* btl = bml_btl->btl;
total_bandwidth += bml_btl->btl->btl_bandwidth;
total_bandwidth += bml_btl->btl->btl_bandwidth;
if(btl->btl_latency < latency) {
latency = btl->btl_latency;
}
bml_endpoint->bml_max_send_length += bml_btl->btl->btl_bandwidth;
}
/* (1) set the weight of each btl as a percentage of overall bandwidth
* (2) copy all btl instances at the highest priority ranking into the
* list of btls used for first fragments
*/
for(n_index = 0; n_index < n_size; n_index++) {
mca_bml_base_btl_t* bml_btl =
mca_bml_base_btl_array_get_index(&bml_endpoint->btl_send, n_index);

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

@ -35,10 +35,10 @@ extern "C"
/* Globally exported variables */
OMPI_COMP_EXPORT extern const mca_coll_base_component_1_0_0_t
OMPI_DECLSPEC extern const mca_coll_base_component_1_0_0_t
mca_coll_basic_component;
OMPI_COMP_EXPORT extern int mca_coll_basic_priority;
OMPI_COMP_EXPORT extern int mca_coll_basic_crossover;
OMPI_DECLSPEC extern int mca_coll_basic_priority;
OMPI_DECLSPEC extern int mca_coll_basic_crossover;
/* API functions */

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

@ -35,8 +35,8 @@ extern "C" {
* Globally exported variable
*/
OMPI_COMP_EXPORT extern const mca_coll_base_component_1_0_0_t mca_coll_self_component;
OMPI_COMP_EXPORT extern int mca_coll_self_priority_param;
OMPI_DECLSPEC extern const mca_coll_base_component_1_0_0_t mca_coll_self_component;
OMPI_DECLSPEC extern int mca_coll_self_priority_param;
/*

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

@ -67,22 +67,22 @@ extern "C" {
* Globally exported variable
*/
/* OMPI_COMP_EXPORT extern const mca_coll_base_component_1_0_0_t mca_coll_tuned_component; */
/* OMPI_DECLSPEC extern const mca_coll_base_component_1_0_0_t mca_coll_tuned_component; */
/* these are the same across all modules and are loaded at component query time */
OMPI_COMP_EXPORT extern int ompi_coll_tuned_stream;
OMPI_COMP_EXPORT extern int ompi_coll_tuned_priority;
OMPI_COMP_EXPORT extern int ompi_coll_tuned_preallocate_memory_comm_size_limit;
OMPI_COMP_EXPORT extern int ompi_coll_tuned_use_dynamic_rules;
OMPI_COMP_EXPORT extern char* ompi_coll_tuned_dynamic_rules_filename;
OMPI_COMP_EXPORT extern int ompi_coll_tuned_init_tree_fanout;
OMPI_COMP_EXPORT extern int ompi_coll_tuned_init_chain_fanout;
OMPI_DECLSPEC extern int ompi_coll_tuned_stream;
OMPI_DECLSPEC extern int ompi_coll_tuned_priority;
OMPI_DECLSPEC extern int ompi_coll_tuned_preallocate_memory_comm_size_limit;
OMPI_DECLSPEC extern int ompi_coll_tuned_use_dynamic_rules;
OMPI_DECLSPEC extern char* ompi_coll_tuned_dynamic_rules_filename;
OMPI_DECLSPEC extern int ompi_coll_tuned_init_tree_fanout;
OMPI_DECLSPEC extern int ompi_coll_tuned_init_chain_fanout;
/* forced algorithm choices */
/* the indices to the MCA params so that modules can look them up at open / comm create time */
OMPI_COMP_EXPORT extern coll_tuned_force_algorithm_mca_param_indices_t ompi_coll_tuned_forced_params[COLLCOUNT];
OMPI_DECLSPEC extern coll_tuned_force_algorithm_mca_param_indices_t ompi_coll_tuned_forced_params[COLLCOUNT];
/* the actual max algorithm values (readonly), loaded at component open */
OMPI_COMP_EXPORT extern int ompi_coll_tuned_forced_max_algorithms[COLLCOUNT];
OMPI_DECLSPEC extern int ompi_coll_tuned_forced_max_algorithms[COLLCOUNT];

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

@ -43,7 +43,7 @@ struct mca_mpool_gm_component_t {
typedef struct mca_mpool_gm_component_t mca_mpool_gm_component_t;
OMPI_COMP_EXPORT extern mca_mpool_gm_component_t mca_mpool_gm_component;
OMPI_DECLSPEC extern mca_mpool_gm_component_t mca_mpool_gm_component;

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

@ -40,7 +40,7 @@ struct mca_mpool_mvapi_component_t {
typedef struct mca_mpool_mvapi_component_t mca_mpool_mvapi_component_t;
OMPI_COMP_EXPORT extern mca_mpool_mvapi_component_t mca_mpool_mvapi_component;
OMPI_DECLSPEC extern mca_mpool_mvapi_component_t mca_mpool_mvapi_component;

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

@ -48,7 +48,7 @@ struct mca_mpool_openib_component_t {
typedef struct mca_mpool_openib_component_t mca_mpool_openib_component_t;
OMPI_COMP_EXPORT extern mca_mpool_openib_component_t mca_mpool_openib_component;
OMPI_DECLSPEC extern mca_mpool_openib_component_t mca_mpool_openib_component;

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

@ -39,8 +39,8 @@ struct mca_mpool_sm_component_t {
};
typedef struct mca_mpool_sm_component_t mca_mpool_sm_component_t;
OMPI_COMP_EXPORT extern mca_mpool_sm_component_t mca_mpool_sm_component;
/* OMPI_COMP_EXPORT extern mca_mpool_base_module_t mca_mpool_sm_module; */
OMPI_DECLSPEC extern mca_mpool_sm_component_t mca_mpool_sm_component;
/* OMPI_DECLSPEC extern mca_mpool_base_module_t mca_mpool_sm_module; */

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

@ -36,7 +36,7 @@ struct mca_mpool_udapl_component_t {
char* rcache_name;
};
typedef struct mca_mpool_udapl_component_t mca_mpool_udapl_component_t;
OMPI_COMP_EXPORT extern mca_mpool_udapl_component_t mca_mpool_udapl_component;
OMPI_DECLSPEC extern mca_mpool_udapl_component_t mca_mpool_udapl_component;
struct mca_mpool_base_resources_t {

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

@ -30,7 +30,7 @@ struct mca_pml_cm_proc_t {
mca_pml_proc_t base;
};
typedef struct mca_pml_cm_proc_t mca_pml_cm_proc_t;
OMPI_COMP_EXPORT extern opal_class_t mca_pml_cm_proc_t_class;
OMPI_DECLSPEC extern opal_class_t mca_pml_cm_proc_t_class;
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -24,6 +24,6 @@
* PML module functions.
*/
OMPI_COMP_EXPORT extern mca_pml_base_component_1_0_0_t mca_pml_dr_component;
OMPI_DECLSPEC extern mca_pml_base_component_1_0_0_t mca_pml_dr_component;
#endif

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

@ -37,7 +37,7 @@ struct mca_pml_dr_proc_t {
mca_pml_proc_t base;
};
typedef struct mca_pml_dr_proc_t mca_pml_dr_proc_t;
OMPI_COMP_EXPORT extern opal_class_t mca_pml_dr_proc_t_class;
OMPI_DECLSPEC extern opal_class_t mca_pml_dr_proc_t_class;
#if defined(c_plusplus) || defined(__cplusplus)

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

@ -24,6 +24,6 @@
* PML module functions.
*/
OMPI_COMP_EXPORT extern mca_pml_base_component_1_0_0_t mca_pml_ob1_component;
OMPI_DECLSPEC extern mca_pml_base_component_1_0_0_t mca_pml_ob1_component;
#endif

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

@ -37,7 +37,7 @@ struct mca_pml_ob1_proc_t {
mca_pml_proc_t base;
};
typedef struct mca_pml_ob1_proc_t mca_pml_ob1_proc_t;
OMPI_COMP_EXPORT extern opal_class_t mca_pml_ob1_proc_t_class;
OMPI_DECLSPEC extern opal_class_t mca_pml_ob1_proc_t_class;
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -790,7 +790,7 @@ int mca_pml_ob1_recv_request_schedule_exclusive(
}
/* run progress as the prepare (pinning) can take some time */
/* mca_pml_ob1_progress(); */
mca_bml.bml_progress();
}
} while(OPAL_THREAD_ADD32(&recvreq->req_lock,-1) > 0);

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

@ -44,7 +44,7 @@ struct mca_rcache_rb_component_t {
mca_rcache_base_component_t super;
}; typedef struct mca_rcache_rb_component_t mca_rcache_rb_component_t;
OMPI_COMP_EXPORT extern mca_rcache_rb_component_t mca_rcache_rb_component;
OMPI_DECLSPEC extern mca_rcache_rb_component_t mca_rcache_rb_component;

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

@ -49,7 +49,7 @@ struct mca_rcache_vma_component_t {
size_t reg_max_mru_size;
}; typedef struct mca_rcache_vma_component_t mca_rcache_vma_component_t;
OMPI_COMP_EXPORT extern mca_rcache_vma_component_t mca_rcache_vma_component;
OMPI_DECLSPEC extern mca_rcache_vma_component_t mca_rcache_vma_component;

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

@ -43,7 +43,7 @@ const char *mca_topo_unity_component_version_string =
* and finalize() are called during creation/destruction of a comm
* *******************************************************************
*/
OMPI_COMP_EXPORT mca_topo_base_component_1_0_0_t mca_topo_unity_component =
mca_topo_base_component_1_0_0_t mca_topo_unity_component =
{
{
MCA_TOPO_BASE_VERSION_1_0_0, /* version number */

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

@ -41,7 +41,7 @@ struct opal_atomic_lifo_t
typedef struct opal_atomic_lifo_t opal_atomic_lifo_t;
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(opal_atomic_lifo_t);
OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_atomic_lifo_t);
/* The ghost pointer will never change. The head will change via an atomic
* compare-and-swap. On most architectures the reading of a pointer is an

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

@ -64,7 +64,7 @@ OBJ_CLASS_DECLARATION(opal_free_list_item_t);
* @param num_elements_per_alloc Number of elements to grow by per allocation.
*/
OMPI_DECLSPEC int opal_free_list_init(
OPAL_DECLSPEC int opal_free_list_init(
opal_free_list_t *free_list,
size_t element_size,
opal_class_t* element_class,
@ -72,7 +72,7 @@ OMPI_DECLSPEC int opal_free_list_init(
int max_elements_to_alloc,
int num_elements_per_alloc);
OMPI_DECLSPEC int opal_free_list_grow(opal_free_list_t* flist, size_t num_elements);
OPAL_DECLSPEC int opal_free_list_grow(opal_free_list_t* flist, size_t num_elements);
/**
* Attemp to obtain an item from a free list.

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

@ -35,7 +35,7 @@
extern "C" {
#endif
OMPI_DECLSPEC extern opal_class_t opal_hash_table_t_class;
OPAL_DECLSPEC extern opal_class_t opal_hash_table_t_class;
struct opal_hash_table_t
@ -62,7 +62,7 @@ typedef struct opal_hash_table_t opal_hash_table_t;
*
*/
OMPI_DECLSPEC int opal_hash_table_init(opal_hash_table_t* ht, size_t table_size);
OPAL_DECLSPEC int opal_hash_table_init(opal_hash_table_t* ht, size_t table_size);
/**
@ -86,7 +86,7 @@ static inline size_t opal_hash_table_get_size(opal_hash_table_t *ht)
*
*/
OMPI_DECLSPEC int opal_hash_table_remove_all(opal_hash_table_t *ht);
OPAL_DECLSPEC int opal_hash_table_remove_all(opal_hash_table_t *ht);
/**
* Retrieve value via uint32_t key.
@ -101,7 +101,7 @@ OMPI_DECLSPEC int opal_hash_table_remove_all(opal_hash_table_t *ht);
*
*/
OMPI_DECLSPEC int opal_hash_table_get_value_uint32(opal_hash_table_t* table, uint32_t key,
OPAL_DECLSPEC int opal_hash_table_get_value_uint32(opal_hash_table_t* table, uint32_t key,
void** ptr);
/**
@ -114,7 +114,7 @@ OMPI_DECLSPEC int opal_hash_table_get_value_uint32(opal_hash_table_t* table, uin
*
*/
OMPI_DECLSPEC int opal_hash_table_set_value_uint32(opal_hash_table_t* table, uint32_t key, void* value);
OPAL_DECLSPEC int opal_hash_table_set_value_uint32(opal_hash_table_t* table, uint32_t key, void* value);
/**
* Remove value based on uint32_t key.
@ -125,7 +125,7 @@ OMPI_DECLSPEC int opal_hash_table_set_value_uint32(opal_hash_table_t* table, uin
*
*/
OMPI_DECLSPEC int opal_hash_table_remove_value_uint32(opal_hash_table_t* table, uint32_t key);
OPAL_DECLSPEC int opal_hash_table_remove_value_uint32(opal_hash_table_t* table, uint32_t key);
/**
* Retrieve value via uint64_t key.
@ -140,7 +140,7 @@ OMPI_DECLSPEC int opal_hash_table_remove_value_uint32(opal_hash_table_t* table,
*
*/
OMPI_DECLSPEC int opal_hash_table_get_value_uint64(opal_hash_table_t *table, uint64_t key,
OPAL_DECLSPEC int opal_hash_table_get_value_uint64(opal_hash_table_t *table, uint64_t key,
void **ptr);
/**
@ -153,7 +153,7 @@ OMPI_DECLSPEC int opal_hash_table_get_value_uint64(opal_hash_table_t *table, uin
*
*/
OMPI_DECLSPEC int opal_hash_table_set_value_uint64(opal_hash_table_t *table, uint64_t key, void* value);
OPAL_DECLSPEC int opal_hash_table_set_value_uint64(opal_hash_table_t *table, uint64_t key, void* value);
/**
* Remove value based on uint64_t key.
@ -164,7 +164,7 @@ OMPI_DECLSPEC int opal_hash_table_set_value_uint64(opal_hash_table_t *table, uin
*
*/
OMPI_DECLSPEC int opal_hash_table_remove_value_uint64(opal_hash_table_t *table, uint64_t key);
OPAL_DECLSPEC int opal_hash_table_remove_value_uint64(opal_hash_table_t *table, uint64_t key);
/**
* Retrieve value via arbitrary length binary key.
@ -179,7 +179,7 @@ OMPI_DECLSPEC int opal_hash_table_remove_value_uint64(opal_hash_table_t *table,
*
*/
OMPI_DECLSPEC int opal_hash_table_get_value_ptr(opal_hash_table_t *table, const void* key,
OPAL_DECLSPEC int opal_hash_table_get_value_ptr(opal_hash_table_t *table, const void* key,
size_t keylen, void **ptr);
/**
@ -192,7 +192,7 @@ OMPI_DECLSPEC int opal_hash_table_get_value_ptr(opal_hash_table_t *table, const
*
*/
OMPI_DECLSPEC int opal_hash_table_set_value_ptr(opal_hash_table_t *table, const void* key, size_t keylen, void* value);
OPAL_DECLSPEC int opal_hash_table_set_value_ptr(opal_hash_table_t *table, const void* key, size_t keylen, void* value);
/**
* Remove value based on arbitrary length binary key.
@ -203,7 +203,7 @@ OMPI_DECLSPEC int opal_hash_table_set_value_ptr(opal_hash_table_t *table, const
*
*/
OMPI_DECLSPEC int opal_hash_table_remove_value_ptr(opal_hash_table_t *table, const void* key, size_t keylen);
OPAL_DECLSPEC int opal_hash_table_remove_value_ptr(opal_hash_table_t *table, const void* key, size_t keylen);
/** The following functions are only for allowing iterating through
@ -228,7 +228,7 @@ OMPI_DECLSPEC int opal_hash_table_remove_value_ptr(opal_hash_table_t *table, con
*
*/
OMPI_DECLSPEC int opal_hash_table_get_first_key_uint32(opal_hash_table_t *table, uint32_t *key,
OPAL_DECLSPEC int opal_hash_table_get_first_key_uint32(opal_hash_table_t *table, uint32_t *key,
void **value, void **node);
@ -246,7 +246,7 @@ OMPI_DECLSPEC int opal_hash_table_get_first_key_uint32(opal_hash_table_t *table,
*
*/
OMPI_DECLSPEC int opal_hash_table_get_next_key_uint32(opal_hash_table_t *table, uint32_t *key,
OPAL_DECLSPEC int opal_hash_table_get_next_key_uint32(opal_hash_table_t *table, uint32_t *key,
void **value, void *in_node,
void **out_node);
@ -264,7 +264,7 @@ OMPI_DECLSPEC int opal_hash_table_get_next_key_uint32(opal_hash_table_t *table,
*
*/
OMPI_DECLSPEC int opal_hash_table_get_first_key_uint64(opal_hash_table_t *table, uint64_t *key,
OPAL_DECLSPEC int opal_hash_table_get_first_key_uint64(opal_hash_table_t *table, uint64_t *key,
void **value, void **node);
@ -282,7 +282,7 @@ OMPI_DECLSPEC int opal_hash_table_get_first_key_uint64(opal_hash_table_t *table,
*
*/
OMPI_DECLSPEC int opal_hash_table_get_next_key_uint64(opal_hash_table_t *table, uint64_t *key,
OPAL_DECLSPEC int opal_hash_table_get_next_key_uint64(opal_hash_table_t *table, uint64_t *key,
void **value, void *in_node,
void **out_node);

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

@ -80,13 +80,13 @@ extern "C" {
*
* The class for the list container.
*/
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(opal_list_t);
OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_list_t);
/**
* \internal
*
* Base class for items that are put in list (opal_list_t) containers.
*/
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(opal_list_item_t);
OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_list_item_t);
/**

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

@ -333,7 +333,7 @@ do { \
} while (0)
BEGIN_C_DECLS
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(opal_object_t);
OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_object_t);
/* declarations *******************************************************/
@ -346,7 +346,7 @@ OMPI_DECLSPEC OBJ_CLASS_DECLARATION(opal_object_t);
*
* @param class Pointer to class descriptor
*/
OMPI_DECLSPEC void opal_class_initialize(opal_class_t *);
OPAL_DECLSPEC void opal_class_initialize(opal_class_t *);
/**
* Shut down the class system and release all memory
@ -357,7 +357,7 @@ OMPI_DECLSPEC void opal_class_initialize(opal_class_t *);
* tools like valgrind and purify don't report still-reachable memory
* upon process termination.
*/
OMPI_DECLSPEC int opal_class_finalize(void);
OPAL_DECLSPEC int opal_class_finalize(void);
END_C_DECLS
/**

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

@ -39,7 +39,7 @@
extern "C" {
#endif
OMPI_DECLSPEC extern opal_class_t opal_value_array_t_class;
OPAL_DECLSPEC extern opal_class_t opal_value_array_t_class;
struct opal_value_array_t

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

@ -155,7 +155,7 @@ static int timeout_next(struct event_base *, struct timeval *);
static void timeout_process(struct event_base *);
static void timeout_correct(struct event_base *, struct timeval *);
OMPI_DECLSPEC opal_mutex_t opal_event_lock;
OPAL_DECLSPEC opal_mutex_t opal_event_lock;
static int opal_event_inited = 0;
static bool opal_event_enabled = false;
#if OMPI_ENABLE_PROGRESS_THREADS

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

@ -154,15 +154,15 @@ struct opal_eventop {
#define OPAL_TIMEOUT_DEFAULT {1, 0}
OMPI_DECLSPEC int opal_event_init(void);
OMPI_DECLSPEC int opal_event_dispatch(void);
OMPI_DECLSPEC int opal_event_base_dispatch(struct event_base *);
OPAL_DECLSPEC int opal_event_init(void);
OPAL_DECLSPEC int opal_event_dispatch(void);
OPAL_DECLSPEC int opal_event_base_dispatch(struct event_base *);
OMPI_DECLSPEC int opal_event_fini(void);
OMPI_DECLSPEC int opal_event_enable(void);
OMPI_DECLSPEC int opal_event_disable(void);
OMPI_DECLSPEC bool opal_event_progress_thread(void);
OMPI_DECLSPEC int opal_event_restart(void);
OPAL_DECLSPEC int opal_event_fini(void);
OPAL_DECLSPEC int opal_event_enable(void);
OPAL_DECLSPEC int opal_event_disable(void);
OPAL_DECLSPEC bool opal_event_progress_thread(void);
OPAL_DECLSPEC int opal_event_restart(void);
#define _EVENT_LOG_DEBUG 0
#define _EVENT_LOG_MSG 1
@ -178,7 +178,7 @@ int opal_event_base_set(struct event_base *, struct opal_event *);
#define OPAL_EVLOOP_NONBLOCK 0x02
#define OPAL_EVLOOP_ONELOOP 0x04
OMPI_DECLSPEC int opal_event_loop(int);
OPAL_DECLSPEC int opal_event_loop(int);
int opal_event_base_loop(struct event_base *, int);
int opal_event_loopexit(struct timeval *); /* Causes the loop to exit */
int event_base_loopexit(struct event_base *, struct timeval *);
@ -203,11 +203,11 @@ int event_base_loopexit(struct event_base *, struct timeval *);
#define opal_signal_initialized(ev) ((ev)->ev_flags & OPAL_EVLIST_INIT)
/* for internal use only */
OMPI_DECLSPEC int opal_event_add_i(struct opal_event *, struct timeval *);
OMPI_DECLSPEC int opal_event_del_i(struct opal_event *);
OMPI_DECLSPEC void opal_event_active_i(struct opal_event*, int, short);
OMPI_DECLSPEC extern opal_mutex_t opal_event_lock;
OMPI_DECLSPEC extern int opal_evsignal_restart(void);
OPAL_DECLSPEC int opal_event_add_i(struct opal_event *, struct timeval *);
OPAL_DECLSPEC int opal_event_del_i(struct opal_event *);
OPAL_DECLSPEC void opal_event_active_i(struct opal_event*, int, short);
OPAL_DECLSPEC extern opal_mutex_t opal_event_lock;
OPAL_DECLSPEC extern int opal_evsignal_restart(void);
extern struct event_base *current_base;

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

@ -28,48 +28,10 @@
#error "opal_config_bottom.h should only be included from opal_config.h"
#endif
/*
* OMPI_BUILDING and OMPI_BUILDING_WIN_DSO define how ompi_config.h
* handles configuring all of Open MPI's "compatibility" code. Both
* constants will always be defined by the end of ompi_config.h.
*
* OMPI_BUILDING affects how much compatibility code is included by
* ompi_config.h. It will always be 1 or 0. The user can set the
* value before including either mpi.h or ompi_config.h and it will be
* respected. If ompi_config.h is included before mpi.h, it will
* default to 1. If mpi.h is included before ompi_config.h, it will
* default to 0.
*
* If OMPI_BUILDING is 1, ompi_config.h will:
* - everything that happens with OMPI_BUILDING set to 0
* - include a bunch of header files (stdint.h, stdtypes.h, etc.)
* - potentially override malloc, free, etc. for memory debugging
* - provide C bool type
* - set ompi_building code to import all OMPI interfaces (windows)
*
* If OMPI_BUILDING is 0, ompi_config.h will:
* - set configuration #defines
* - define the fortran complex types
* - set the ompi_building code to export all the interfaces
* (unless OMPI_BUILDING_WIN_DSO is set to 1) (windows)
*
* If OMPI_BUILDING_WIN_DSO is 1, ompi_config.h will:
* - configure the OMPI_DECLSPEC defines to assume we are building a
* dynamic shared object for a component on Windows. This will set
* all the import/export flags appropriately.
*
* If OMPI_BUILDING_WIN_DSO is 0 (or unset), ompi_config.h will:
* - configure the OMPI_DECLSPEC defines to assume we are not building
* a DSO component for Windows .
*/
#ifndef OMPI_BUILDING
#define OMPI_BUILDING 1
#endif
#ifndef OMPI_BUILDING_WIN_DSO
#define OMPI_BUILDING_WIN_DSO 0
#endif
/***********************************************************************
*
* code that should be in ompi_config_bottom.h regardless of build
@ -93,30 +55,28 @@
#if defined(__WINDOWS__)
# if OMPI_BUILDING_WIN_DSO
/* building a component - need to import libmpi and export our
struct */
# define OMPI_COMP_EXPORT __declspec(dllexport)
# define OMPI_DECLSPEC __declspec(dllimport)
# else
# if OMPI_BUILDING
/* building libmpi (or something in libmpi) - need to export libmpi
interface */
# define OMPI_COMP_EXPORT
# define OMPI_DECLSPEC __declspec(dllexport)
# if defined(_USRDLL) /* building shared libraries (.DLL) */
# if defined(OPAL_EXPORTS)
# define OPAL_DECLSPEC __declspec(dllexport)
# else
/* building something using libmpi - export the libmpi interface */
# define OMPI_COMP_EXPORT
# define OMPI_DECLSPEC __declspec(dllimport)
# define OPAL_DECLSPEC __declspec(dllimport)
# endif
# if defined(OPAL_MODULE_EXPORTS)
# define OPAL_MODULE_DECLSPEC __declspec(dllexport)
# else
# define OPAL_MODULE_DECLSPEC __declspec(dllimport)
# endif
# else /* building static library */
# define OPAL_DECLSPEC
# define OPAL_MODULE_DECLSPEC
# endif
# if OMPI_BUILDING
# include "opal/win32/win_compat.h"
# endif
# endif /* OMPI_BUILDING */
#else
/* On Unix - get rid of the defines */
# define OMPI_COMP_EXPORT
# define OMPI_DECLSPEC
/* On Unix - this define is plain useless */
# define OPAL_DECLSPEC
# define OPAL_MODULE_DECLSPEC
#endif
/***********************************************************************

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

@ -53,7 +53,7 @@ extern "C" {
* functions -- it is not considered a public interface member --
* and is only mentioned here for completeness.
*/
OMPI_DECLSPEC int opal_backtrace_base_open(void);
OPAL_DECLSPEC int opal_backtrace_base_open(void);
/**
@ -67,7 +67,7 @@ extern "C" {
*
* It must be the last function invoked on the backtrace MCA framework.
*/
OMPI_DECLSPEC int opal_backtrace_base_close(void);
OPAL_DECLSPEC int opal_backtrace_base_close(void);
extern opal_list_t opal_backtrace_base_components_opened;

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

@ -61,7 +61,7 @@ OBJ_CLASS_DECLARATION(mca_base_component_priority_list_item_t);
/*
* Public variables
*/
OMPI_DECLSPEC extern int mca_base_param_component_path;
OPAL_DECLSPEC extern int mca_base_param_component_path;
/*
@ -82,7 +82,7 @@ OMPI_DECLSPEC extern int mca_base_param_component_path;
* invoked during ompi_mpi_init() and specifically invoked in the
* special case of the laminfo command.
*/
OMPI_DECLSPEC int mca_base_open(void);
OPAL_DECLSPEC int mca_base_open(void);
/**
* Last function called in the MCA
@ -97,41 +97,41 @@ OMPI_DECLSPEC int mca_base_open(void);
* during ompi_mpi_finalize() and specifically invoked during the
* special case of the laminfo command.
*/
OMPI_DECLSPEC int mca_base_close(void);
OPAL_DECLSPEC int mca_base_close(void);
/* mca_base_cmd_line.c */
OMPI_DECLSPEC int mca_base_cmd_line_setup(opal_cmd_line_t *cmd);
OMPI_DECLSPEC int mca_base_cmd_line_process_args(opal_cmd_line_t *cmd,
OPAL_DECLSPEC int mca_base_cmd_line_setup(opal_cmd_line_t *cmd);
OPAL_DECLSPEC int mca_base_cmd_line_process_args(opal_cmd_line_t *cmd,
char ***app_env,
char ***global_env);
/* mca_base_component_compare.c */
OMPI_DECLSPEC int mca_base_component_compare_priority(mca_base_component_priority_list_item_t *a,
OPAL_DECLSPEC int mca_base_component_compare_priority(mca_base_component_priority_list_item_t *a,
mca_base_component_priority_list_item_t *b);
OMPI_DECLSPEC int mca_base_component_compare(const mca_base_component_t *a,
OPAL_DECLSPEC int mca_base_component_compare(const mca_base_component_t *a,
const mca_base_component_t *b);
int mca_base_component_compatible(const mca_base_component_t *a,
const mca_base_component_t *b);
/* mca_base_component_find.c */
OMPI_DECLSPEC int mca_base_component_find(const char *directory, const char *type,
OPAL_DECLSPEC int mca_base_component_find(const char *directory, const char *type,
const mca_base_component_t *static_components[],
opal_list_t *found_components,
bool open_dso_components);
/* mca_base_components_open.c */
OMPI_DECLSPEC int mca_base_components_open(const char *type_name, int output_id,
OPAL_DECLSPEC int mca_base_components_open(const char *type_name, int output_id,
const mca_base_component_t **static_components,
opal_list_t *components_available,
bool open_dso_components);
/* mca_base_components_close.c */
OMPI_DECLSPEC int mca_base_components_close(int output_id, opal_list_t *components_available,
OPAL_DECLSPEC int mca_base_components_close(int output_id, opal_list_t *components_available,
const mca_base_component_t *skip);
#if 0

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

@ -25,7 +25,7 @@
extern "C" {
#endif
OMPI_DECLSPEC int mca_base_component_repository_init(void);
OPAL_DECLSPEC int mca_base_component_repository_init(void);
/* This file provide the external interface to our base component
* module. Most of the components that depend on it, will use the
@ -64,18 +64,18 @@ extern "C" {
typedef void *lt_dlhandle;
#endif
OMPI_DECLSPEC int mca_base_component_repository_retain(char *type,
OPAL_DECLSPEC int mca_base_component_repository_retain(char *type,
lt_dlhandle component_handle,
const mca_base_component_t *component_struct);
OMPI_DECLSPEC int mca_base_component_repository_retain_component(const char *type,
OPAL_DECLSPEC int mca_base_component_repository_retain_component(const char *type,
const char *name);
OMPI_DECLSPEC int mca_base_component_repository_link(const char *src_type,
OPAL_DECLSPEC int mca_base_component_repository_link(const char *src_type,
const char *src_name,
const char *depend_type,
const char *depend_name);
OMPI_DECLSPEC void mca_base_component_repository_release(const mca_base_component_t *component);
OMPI_DECLSPEC void mca_base_component_repository_finalize(void);
OPAL_DECLSPEC void mca_base_component_repository_release(const mca_base_component_t *component);
OPAL_DECLSPEC void mca_base_component_repository_finalize(void);
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -75,7 +75,7 @@ typedef struct mca_base_msgbuffer_s* mca_base_msgbuf_t;
* unlimited buffer.
*
* Giving a req size just makes it more memory efficient. */
OMPI_DECLSPEC mca_base_msgbuf_t mca_base_msgbuf_new (size_t reqsize);
OPAL_DECLSPEC mca_base_msgbuf_t mca_base_msgbuf_new (size_t reqsize);
/* make a copy of an existing buffer
*
@ -86,7 +86,7 @@ OMPI_DECLSPEC mca_base_msgbuf_t mca_base_msgbuf_new (size_t reqsize);
*
* this is usefull for the registry and is needed as unpack is
* destructive */
OMPI_DECLSPEC int mca_base_msgbuf_copy (mca_base_msgbuf_t* copybufid, mca_base_msgbuf_t orgbufid);
OPAL_DECLSPEC int mca_base_msgbuf_copy (mca_base_msgbuf_t* copybufid, mca_base_msgbuf_t orgbufid);
/* set a buffer to a block of memory so that you do not pack/memory copy
*
@ -99,7 +99,7 @@ OMPI_DECLSPEC int mca_base_msgbuf_copy (mca_base_msgbuf_t* copybufid, mca_base_
* to pack a buffer but do a send from memory directly
* a free on this special buffer just frees its structure not the memory
*/
OMPI_DECLSPEC mca_base_msgbuf_t mca_base_msgbuf_construct (void* ptr, size_t datasize);
OPAL_DECLSPEC mca_base_msgbuf_t mca_base_msgbuf_construct (void* ptr, size_t datasize);
/* explicit free of a buffer when not auto freeing them
*
@ -110,7 +110,7 @@ OMPI_DECLSPEC mca_base_msgbuf_t mca_base_msgbuf_construct (void* ptr, size_t dat
* This routine resets the handle the user passing inso that they can only
* free it once
*/
OMPI_DECLSPEC int mca_base_msgbuf_free (mca_base_msgbuf_t* bufid);
OPAL_DECLSPEC int mca_base_msgbuf_free (mca_base_msgbuf_t* bufid);
/* pack and non-string typed data
*
@ -124,7 +124,7 @@ OMPI_DECLSPEC int mca_base_msgbuf_free (mca_base_msgbuf_t* bufid);
* If the buffer fills up, it will automatically resize unless allocated
* with fixed buffer size.
*/
OMPI_DECLSPEC int mca_base_msgbuf_pack (mca_base_msgbuf_t bufid, void* ptr, size_t num_items, mca_base_msgbuf_data_t datatype);
OPAL_DECLSPEC int mca_base_msgbuf_pack (mca_base_msgbuf_t bufid, void* ptr, size_t num_items, mca_base_msgbuf_data_t datatype);
/* unpack non-string typed data
@ -141,7 +141,7 @@ OMPI_DECLSPEC int mca_base_msgbuf_pack (mca_base_msgbuf_t bufid, void* ptr, siz
* request, the routine will unpack what it can and then return an error.
* The user is responsible for unpacking a message correctly.
*/
OMPI_DECLSPEC int mca_base_msgbuf_unpack (mca_base_msgbuf_t bufid, void* ptr, size_t num_items, mca_base_msgbuf_data_t datatype);
OPAL_DECLSPEC int mca_base_msgbuf_unpack (mca_base_msgbuf_t bufid, void* ptr, size_t num_items, mca_base_msgbuf_data_t datatype);
/* pack a NULL terminated string
*
@ -153,7 +153,7 @@ OMPI_DECLSPEC int mca_base_msgbuf_unpack (mca_base_msgbuf_t bufid, void* ptr, s
* If the buffer fills up, it will automatically resize unless allocated
* with a fixed buffer size.
*/
OMPI_DECLSPEC int mca_base_msgbuf_pack_string (mca_base_msgbuf_t bufid, char* strptr);
OPAL_DECLSPEC int mca_base_msgbuf_pack_string (mca_base_msgbuf_t bufid, char* strptr);
/* unpack a NULL terminated string
*
@ -167,7 +167,7 @@ OMPI_DECLSPEC int mca_base_msgbuf_pack_string (mca_base_msgbuf_t bufid, char* s
* then the routine truncates the string but always NULL terminates it.
*
*/
OMPI_DECLSPEC int mca_base_msgbuf_unpack_string (mca_base_msgbuf_t bufid, char* strptr, size_t maxlen);
OPAL_DECLSPEC int mca_base_msgbuf_unpack_string (mca_base_msgbuf_t bufid, char* strptr, size_t maxlen);
/* constants */

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

@ -540,7 +540,6 @@ char *mca_base_param_environ_variable(const char *type,
/*
* Find the index for an MCA parameter based on its names.
*/
OMPI_DECLSPEC
int mca_base_param_find(const char *type_name, const char *component_name,
const char *param_name)
{

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

@ -133,7 +133,7 @@ extern "C" {
* invoked internally (by mca_base_open()) and is only documented
* here for completeness.
*/
OMPI_DECLSPEC int mca_base_param_init(void);
OPAL_DECLSPEC int mca_base_param_init(void);
/**
* Register an integer MCA parameter.
@ -187,7 +187,7 @@ extern "C" {
* complete, the parameter system will look up the current value
* of the parameter and return it in {current_value}.
*/
OMPI_DECLSPEC int mca_base_param_reg_int(const mca_base_component_t *component,
OPAL_DECLSPEC int mca_base_param_reg_int(const mca_base_component_t *component,
const char *param_name,
const char *help_msg,
bool internal,
@ -238,7 +238,7 @@ extern "C" {
* NULL (because it is not specified in this registration
* function, and is therefore registered with a NULL value).
*/
OMPI_DECLSPEC int mca_base_param_reg_int_name(const char *type,
OPAL_DECLSPEC int mca_base_param_reg_int_name(const char *type,
const char *param_name,
const char *help_msg,
bool internal,
@ -279,7 +279,7 @@ extern "C" {
* string default value (which is \em not allowed to be NULL).
* See mca_base_param_reg_int() for all other details.
*/
OMPI_DECLSPEC int mca_base_param_reg_string(const mca_base_component_t *component,
OPAL_DECLSPEC int mca_base_param_reg_string(const mca_base_component_t *component,
const char *param_name,
const char *help_msg,
bool internal,
@ -335,7 +335,7 @@ extern "C" {
* NULL (because it is not specified in this registration
* function, and is therefore registered with a NULL value).
*/
OMPI_DECLSPEC int mca_base_param_reg_string_name(const char *type,
OPAL_DECLSPEC int mca_base_param_reg_string_name(const char *type,
const char *param_name,
const char *help_msg,
bool internal,
@ -366,7 +366,7 @@ extern "C" {
* versions will cross reference and attempt to find parameter
* values on attributes.
*/
OMPI_DECLSPEC int mca_base_param_kv_associate(int index, int keyval);
OPAL_DECLSPEC int mca_base_param_kv_associate(int index, int keyval);
/**
* Look up an integer MCA parameter.
@ -384,7 +384,7 @@ extern "C" {
* The value of a specific MCA parameter can be looked up using the
* return value from mca_base_param_register_int().
*/
OMPI_DECLSPEC int mca_base_param_lookup_int(int index, int *value);
OPAL_DECLSPEC int mca_base_param_lookup_int(int index, int *value);
/**
* Look up an integer MCA parameter, to include looking in
@ -406,7 +406,7 @@ extern "C" {
* value. The function mca_base_param_kv_associate() must have been
* called first to associate a keyval with the index.
*/
OMPI_DECLSPEC int mca_base_param_kv_lookup_int(int index,
OPAL_DECLSPEC int mca_base_param_kv_lookup_int(int index,
struct opal_hash_table_t *attrs,
int *value);
@ -433,7 +433,7 @@ extern "C" {
* The value of a specific MCA parameter can be looked up using the
* return value from mca_base_param_register_string().
*/
OMPI_DECLSPEC int mca_base_param_lookup_string(int index, char **value);
OPAL_DECLSPEC int mca_base_param_lookup_string(int index, char **value);
/**
* Look up a string MCA parameter, to include looking in attributes.
@ -454,7 +454,7 @@ extern "C" {
* parameter value. The function mca_base_param_kv_associate() must
* have been called first to associate a keyval with the index.
*/
OMPI_DECLSPEC int mca_base_param_kv_lookup_string(int index,
OPAL_DECLSPEC int mca_base_param_kv_lookup_string(int index,
struct opal_hash_table_t *attrs,
char **value);
@ -476,7 +476,7 @@ extern "C" {
* This function may be invoked multiple times; each time, the
* last "set" value is replaced with the newest value.
*/
OMPI_DECLSPEC int mca_base_param_set_int(int index, int value);
OPAL_DECLSPEC int mca_base_param_set_int(int index, int value);
/**
* Sets an "override" value for an string MCA parameter.
@ -500,7 +500,7 @@ extern "C" {
* last "set" value is replaced with the newest value (the old
* value is discarded).
*/
OMPI_DECLSPEC int mca_base_param_set_string(int index, char *value);
OPAL_DECLSPEC int mca_base_param_set_string(int index, char *value);
/**
* Unset a parameter that was previously set by
@ -514,7 +514,7 @@ extern "C" {
* Resets previous value that was set (if any) on the given MCA
* parameter.
*/
OMPI_DECLSPEC int mca_base_param_unset(int index);
OPAL_DECLSPEC int mca_base_param_unset(int index);
/**
* Get the string name corresponding to the MCA parameter
@ -529,7 +529,7 @@ extern "C" {
* The string that is returned is owned by the caller; if
* appropriate, it must be eventually freed by the caller.
*/
OMPI_DECLSPEC char *mca_base_param_env_var(const char *param_name);
OPAL_DECLSPEC char *mca_base_param_env_var(const char *param_name);
/**
* Find the index for an MCA parameter based on its names.
@ -550,7 +550,7 @@ extern "C" {
* can be used with mca_base_param_lookup_int() and
* mca_base_param_lookup_string().
*/
OMPI_DECLSPEC int mca_base_param_find(const char *type,
OPAL_DECLSPEC int mca_base_param_find(const char *type,
const char *component,
const char *param);
@ -573,7 +573,7 @@ extern "C" {
* MPI_INIT (at least, they're not displayed by default), thus
* keeping them away from prying user eyes.
*/
OMPI_DECLSPEC int mca_base_param_set_internal(int index, bool internal);
OPAL_DECLSPEC int mca_base_param_set_internal(int index, bool internal);
/**
* Obtain a list of all the MCA parameters currently defined as
@ -599,7 +599,7 @@ extern "C" {
* mca_base_param_dump_release() when finished with the returned
* info list to release all associated memory.
*/
OMPI_DECLSPEC int mca_base_param_dump(opal_list_t **info, bool internal);
OPAL_DECLSPEC int mca_base_param_dump(opal_list_t **info, bool internal);
/**
* Obtain a list of all the MCA parameters currently defined as
@ -619,7 +619,7 @@ extern "C" {
* its output is in terms of an argv-style array of key=value
* strings, suitable for using in an environment.
*/
OMPI_DECLSPEC int mca_base_param_build_env(char ***env, int *num_env,
OPAL_DECLSPEC int mca_base_param_build_env(char ***env, int *num_env,
bool internal);
/**
@ -639,7 +639,7 @@ extern "C" {
* the caller is finished with the info list, invoke this
* function and all memory associated with the list will be freed.
*/
OMPI_DECLSPEC int mca_base_param_dump_release(opal_list_t *info);
OPAL_DECLSPEC int mca_base_param_dump_release(opal_list_t *info);
/**
* Shut down the MCA parameter system (normally only invoked by the
@ -655,7 +655,7 @@ extern "C" {
* when the process is shutting down (e.g., during MPI_FINALIZE). It
* is only documented here for completeness.
*/
OMPI_DECLSPEC int mca_base_param_finalize(void);
OPAL_DECLSPEC int mca_base_param_finalize(void);
/***************************************************************
* Deprecated interface
@ -707,7 +707,7 @@ extern "C" {
* returned, but the default value will be changed to reflect the
* last registration.
*/
OMPI_DECLSPEC int mca_base_param_register_int(const char *type_name,
OPAL_DECLSPEC int mca_base_param_register_int(const char *type_name,
const char *component_name,
const char *param_name,
const char *mca_param_name,
@ -744,7 +744,7 @@ extern "C" {
* associated string default value (which is \em not allowed to be NULL).
* See mca_base_param_register_int() for all other details.
*/
OMPI_DECLSPEC int mca_base_param_register_string(const char *type_name,
OPAL_DECLSPEC int mca_base_param_register_string(const char *type_name,
const char *component_name,
const char *param_name,
const char *mca_param_name,
@ -770,7 +770,7 @@ extern "C" {
* The string that is returned is owned by the caller; if
* appropriate, it must be eventually freed by the caller.
*/
OMPI_DECLSPEC char *mca_base_param_environ_variable(const char *type,
OPAL_DECLSPEC char *mca_base_param_environ_variable(const char *type,
const char *comp,
const char *param);

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

@ -149,7 +149,7 @@ OBJ_CLASS_DECLARATION(mca_base_param_file_value_t);
*
* Global list of params and values read in from MCA parameter files
*/
OMPI_DECLSPEC extern opal_list_t mca_base_param_file_values;
OPAL_DECLSPEC extern opal_list_t mca_base_param_file_values;
#if defined(c_plusplus) || defined(__cplusplus)

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

@ -50,7 +50,7 @@ extern "C" {
* functions -- it is not considered a public interface member --
* and is only mentioned here for completeness.
*/
OMPI_DECLSPEC int opal_maffinity_base_open(void);
OPAL_DECLSPEC int opal_maffinity_base_open(void);
/**
* Select an available component.
@ -83,7 +83,7 @@ extern "C" {
* selected. If no component was selected, subsequent invocation
* of the maffinity wrapper functions will return an error.
*/
OMPI_DECLSPEC int opal_maffinity_base_select(void);
OPAL_DECLSPEC int opal_maffinity_base_select(void);
/**
* Set memory affinity.
@ -105,7 +105,7 @@ extern "C" {
* opal_maffinity_base_select() was never invoked, OPAL_NOT_FOUND
* is returned.
*/
OMPI_DECLSPEC int opal_maffinity_base_set(opal_maffinity_base_segment_t *segments, size_t num_segments);
OPAL_DECLSPEC int opal_maffinity_base_set(opal_maffinity_base_segment_t *segments, size_t num_segments);
/**
* Shut down the maffinity MCA framework.
@ -118,7 +118,7 @@ extern "C" {
* It must be the last function invoked on the maffinity MCA
* framework.
*/
OMPI_DECLSPEC int opal_maffinity_base_close(void);
OPAL_DECLSPEC int opal_maffinity_base_close(void);
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -40,35 +40,35 @@ extern "C" {
* Indication of whether a component was successfully selected or
* not
*/
OMPI_DECLSPEC extern bool opal_maffinity_base_selected;
OPAL_DECLSPEC extern bool opal_maffinity_base_selected;
/**
* Global component struct for the selected component
*/
OMPI_DECLSPEC extern const opal_maffinity_base_component_1_0_0_t
OPAL_DECLSPEC extern const opal_maffinity_base_component_1_0_0_t
*opal_maffinity_base_component;
/**
* Global module struct for the selected module
*/
OMPI_DECLSPEC extern const opal_maffinity_base_module_1_0_0_t
OPAL_DECLSPEC extern const opal_maffinity_base_module_1_0_0_t
*opal_maffinity_base_module;
/**
* Indicator as to whether the list of opened maffinity components
* is valid or not.
*/
OMPI_DECLSPEC extern bool opal_maffinity_base_components_opened_valid;
OPAL_DECLSPEC extern bool opal_maffinity_base_components_opened_valid;
/**
* List of all opened components; created when the maffinity
* framework is initialized and destroyed when we reduce the list
* to all available maffinity components.
*/
OMPI_DECLSPEC extern opal_list_t opal_maffinity_base_components_opened;
OPAL_DECLSPEC extern opal_list_t opal_maffinity_base_components_opened;
/**
* Debugging output stream
*/
OMPI_DECLSPEC extern int opal_maffinity_base_output;
OPAL_DECLSPEC extern int opal_maffinity_base_output;
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -39,7 +39,7 @@ extern "C" {
/**
* Globally exported variable
*/
OMPI_COMP_EXPORT extern const opal_maffinity_base_component_1_0_0_t
OPAL_DECLSPEC extern const opal_maffinity_base_component_1_0_0_t
mca_maffinity_first_use_component;

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

@ -39,7 +39,7 @@ extern "C" {
/**
* Globally exported variable
*/
OMPI_COMP_EXPORT extern const opal_maffinity_base_component_1_0_0_t
OPAL_DECLSPEC extern const opal_maffinity_base_component_1_0_0_t
mca_maffinity_libnuma_component;

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

@ -46,7 +46,7 @@ extern "C" {
* functions -- it is not considered a public interface member --
* and is only mentioned here for completeness.
*/
OMPI_DECLSPEC int opal_memcpy_base_open(void);
OPAL_DECLSPEC int opal_memcpy_base_open(void);
/**
@ -60,7 +60,7 @@ extern "C" {
*
* It must be the last function invoked on the memcpy MCA framework.
*/
OMPI_DECLSPEC int opal_memcpy_base_close(void);
OPAL_DECLSPEC int opal_memcpy_base_close(void);
extern opal_list_t opal_memcpy_base_components_opened;

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

@ -53,7 +53,7 @@ extern "C" {
* functions -- it is not considered a public interface member --
* and is only mentioned here for completeness.
*/
OMPI_DECLSPEC int opal_memory_base_open(void);
OPAL_DECLSPEC int opal_memory_base_open(void);
/**
@ -67,7 +67,7 @@ extern "C" {
*
* It must be the last function invoked on the memory MCA framework.
*/
OMPI_DECLSPEC int opal_memory_base_close(void);
OPAL_DECLSPEC int opal_memory_base_close(void);
extern opal_list_t opal_memory_base_components_opened;

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

@ -52,7 +52,7 @@ extern "C" {
* functions -- it is not considered a public interface member --
* and is only mentioned here for completeness.
*/
OMPI_DECLSPEC int opal_paffinity_base_open(void);
OPAL_DECLSPEC int opal_paffinity_base_open(void);
/**
* Select an available component.
@ -85,7 +85,7 @@ extern "C" {
* selected. If no component was selected, subsequent invocation
* of the paffinity wrapper functions will return an error.
*/
OMPI_DECLSPEC int opal_paffinity_base_select(void);
OPAL_DECLSPEC int opal_paffinity_base_select(void);
/**
* Get the available number of processors
@ -104,7 +104,7 @@ extern "C" {
* opal_paffinity_base_select() was never invoked, OPAL_NOT_FOUND
* is returned and num_procs is set to -1.
*/
OMPI_DECLSPEC int opal_paffinity_base_get_num_processors(int *num_procs);
OPAL_DECLSPEC int opal_paffinity_base_get_num_processors(int *num_procs);
/**
* Set this process' affinity.
@ -121,7 +121,7 @@ extern "C" {
* opal_paffinity_base_select() was never invoked, OPAL_NOT_FOUND
* is returned.
*/
OMPI_DECLSPEC int opal_paffinity_base_set(int id);
OPAL_DECLSPEC int opal_paffinity_base_set(int id);
/**
* Get this process' affinity.
@ -139,7 +139,7 @@ extern "C" {
* opal_paffinity_base_select() was never invoked, OPAL_NOT_FOUND
* is returned and id is set to -1.
*/
OMPI_DECLSPEC int opal_paffinity_base_get(int *id);
OPAL_DECLSPEC int opal_paffinity_base_get(int *id);
/**
* Shut down the paffinity MCA framework.
@ -152,7 +152,7 @@ extern "C" {
* It must be the last function invoked on the paffinity MCA
* framework.
*/
OMPI_DECLSPEC int opal_paffinity_base_close(void);
OPAL_DECLSPEC int opal_paffinity_base_close(void);
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -39,35 +39,35 @@ extern "C" {
* Indication of whether a component was successfully selected or
* not
*/
OMPI_DECLSPEC extern bool opal_paffinity_base_selected;
OPAL_DECLSPEC extern bool opal_paffinity_base_selected;
/**
* Global component struct for the selected component
*/
OMPI_DECLSPEC extern const opal_paffinity_base_component_1_0_0_t
OPAL_DECLSPEC extern const opal_paffinity_base_component_1_0_0_t
*opal_paffinity_base_component;
/**
* Global module struct for the selected module
*/
OMPI_DECLSPEC extern const opal_paffinity_base_module_1_0_0_t
OPAL_DECLSPEC extern const opal_paffinity_base_module_1_0_0_t
*opal_paffinity_base_module;
/**
* Indicator as to whether the list of opened paffinity components
* is valid or not.
*/
OMPI_DECLSPEC extern bool opal_paffinity_base_components_opened_valid;
OPAL_DECLSPEC extern bool opal_paffinity_base_components_opened_valid;
/**
* List of all opened components; created when the paffinity
* framework is initialized and destroyed when we reduce the list
* to all available paffinity components.
*/
OMPI_DECLSPEC extern opal_list_t opal_paffinity_base_components_opened;
OPAL_DECLSPEC extern opal_list_t opal_paffinity_base_components_opened;
/**
* Debugging output stream
*/
OMPI_DECLSPEC extern int opal_paffinity_base_output;
OPAL_DECLSPEC extern int opal_paffinity_base_output;
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -93,7 +93,7 @@ extern "C" {
/**
* Globally exported variable
*/
OMPI_COMP_EXPORT extern const opal_paffinity_base_component_1_0_0_t
OPAL_DECLSPEC extern const opal_paffinity_base_component_1_0_0_t
mca_paffinity_linux_component;

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

@ -32,7 +32,7 @@ extern "C" {
* Globally exported variable
*/
OMPI_COMP_EXPORT extern const opal_paffinity_base_component_1_0_0_t
OPAL_DECLSPEC extern const opal_paffinity_base_component_1_0_0_t
mca_paffinity_solaris_component;

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

@ -52,7 +52,7 @@ extern "C" {
/**
* Globally exported variable
*/
OMPI_COMP_EXPORT extern const opal_paffinity_base_component_1_0_0_t
OPAL_DECLSPEC extern const opal_paffinity_base_component_1_0_0_t
mca_paffinity_windows_component;

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

@ -53,7 +53,7 @@ extern "C" {
* functions -- it is not considered a public interface member --
* and is only mentioned here for completeness.
*/
OMPI_DECLSPEC int opal_timer_base_open(void);
OPAL_DECLSPEC int opal_timer_base_open(void);
/**
@ -67,7 +67,7 @@ extern "C" {
*
* It must be the last function invoked on the timer MCA framework.
*/
OMPI_DECLSPEC int opal_timer_base_close(void);
OPAL_DECLSPEC int opal_timer_base_close(void);
extern opal_list_t opal_timer_base_components_opened;

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

@ -23,7 +23,7 @@
#include <opal/sys/timer.h>
OMPI_DECLSPEC opal_timer_t opal_timer_windows_freq;
OPAL_DECLSPEC opal_timer_t opal_timer_windows_freq;
static inline opal_timer_t
opal_timer_base_get_cycles(void)

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

@ -26,7 +26,7 @@ opal_timer_t opal_timer_windows_freq;
static int opal_timer_windows_open(void);
OMPI_DECLSPEC const
const
opal_timer_base_component_1_0_0_t mca_timer_windows_component = {
/* First, the mca_component_t struct containing meta information
about the component itself */

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

@ -34,7 +34,7 @@ extern "C" {
* \note If this function is called, opal_init_util() should *not* be
* called.
*/
OMPI_DECLSPEC int opal_init(void);
OPAL_DECLSPEC int opal_init(void);
/**
* Finalize the OPAL layer, including the MCA system.
@ -45,7 +45,7 @@ OMPI_DECLSPEC int opal_init(void);
* \note If this function is called, opal_finalize_util() should *not*
* be called.
*/
OMPI_DECLSPEC int opal_finalize(void);
OPAL_DECLSPEC int opal_finalize(void);
/**
* Initialize the OPAL layer, excluding the MCA system.
@ -56,7 +56,7 @@ OMPI_DECLSPEC int opal_finalize(void);
* \note If this function is called, opal_init() should *not*
* be called.
*/
OMPI_DECLSPEC int opal_init_util(void);
OPAL_DECLSPEC int opal_init_util(void);
/**
* Finalize the OPAL layer, excluding the MCA system.
@ -67,12 +67,12 @@ OMPI_DECLSPEC int opal_init_util(void);
* \note If this function is called, opal_finalize() should *not*
* be called.
*/
OMPI_DECLSPEC int opal_finalize_util(void);
OPAL_DECLSPEC int opal_finalize_util(void);
/**
* Internal function. Do not call.
*/
OMPI_DECLSPEC int opal_register_params(void);
OPAL_DECLSPEC int opal_register_params(void);
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -37,7 +37,7 @@ extern "C" {
* functions. At this point, any function in the progress engine
* interface may be called.
*/
OMPI_DECLSPEC extern int opal_progress_init(void);
OPAL_DECLSPEC extern int opal_progress_init(void);
/**
* Configure the progress engine for executing MPI applications
@ -48,7 +48,7 @@ OMPI_DECLSPEC extern int opal_progress_init(void);
* \note opal_progress_init() must be called before calling
* this function. Failure to do so is an error.
*/
OMPI_DECLSPEC extern int opal_progress_mpi_init(void);
OPAL_DECLSPEC extern int opal_progress_mpi_init(void);
/**
* Turn on optimizations for MPI progress
@ -58,7 +58,7 @@ OMPI_DECLSPEC extern int opal_progress_mpi_init(void);
* active use and possibly disabling the sched_yield call when the
* progress engine is idle
*/
OMPI_DECLSPEC extern int opal_progress_mpi_enable(void);
OPAL_DECLSPEC extern int opal_progress_mpi_enable(void);
/**
* Turn off all optimizations enabled by opal_progress_mpi_enable().
@ -67,7 +67,7 @@ OMPI_DECLSPEC extern int opal_progress_mpi_enable(void);
* opal_progress_mpi_enable(). The event library resumes constant
* ticking and the progress engine yields the CPU when idle.
*/
OMPI_DECLSPEC extern int opal_progress_mpi_disable(void);
OPAL_DECLSPEC extern int opal_progress_mpi_disable(void);
/**
* Shut down the progress engine
@ -76,41 +76,41 @@ OMPI_DECLSPEC extern int opal_progress_mpi_disable(void);
* registered callbacks and freeing all resources. After finalize
* returns, no calls into the progress interface are allowed.
*/
OMPI_DECLSPEC extern int opal_progress_finalize(void);
OPAL_DECLSPEC extern int opal_progress_finalize(void);
/**
* Control how the event library is called
*/
OMPI_DECLSPEC extern void opal_progress_events(int);
OPAL_DECLSPEC extern void opal_progress_events(int);
/**
* Progress all pending events
*/
OMPI_DECLSPEC extern void opal_progress(void);
OPAL_DECLSPEC extern void opal_progress(void);
typedef int (*opal_progress_callback_t)(void);
/**
* Register an event to be progressed
*/
OMPI_DECLSPEC int opal_progress_register(opal_progress_callback_t cb);
OPAL_DECLSPEC int opal_progress_register(opal_progress_callback_t cb);
/**
* Unregister previously registered event
*/
OMPI_DECLSPEC int opal_progress_unregister(opal_progress_callback_t cb);
OPAL_DECLSPEC int opal_progress_unregister(opal_progress_callback_t cb);
/**
* Increase count of MPI users of the event library
*/
OMPI_DECLSPEC int opal_progress_event_increment(void);
OPAL_DECLSPEC int opal_progress_event_increment(void);
/**
* Decrease count of MPI users of the event library
*/
OMPI_DECLSPEC int opal_progress_event_decrement(void);
OPAL_DECLSPEC int opal_progress_event_decrement(void);
/**

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

@ -52,7 +52,7 @@ struct opal_condition_t {
};
typedef struct opal_condition_t opal_condition_t;
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(opal_condition_t);
OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_condition_t);
static inline int opal_condition_wait(opal_condition_t *c, opal_mutex_t *m)

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

@ -21,9 +21,11 @@
#include "opal_config.h"
#include "opal/sys/atomic.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* @file:
*
@ -34,7 +36,7 @@ extern "C" {
/*
* declaring this here so that CL does not complain
*/
OMPI_DECLSPEC extern bool opal_uses_threads;
OPAL_DECLSPEC extern bool opal_uses_threads;
/**
* Opaque mutex object

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

@ -60,9 +60,7 @@ struct opal_mutex_t {
opal_atomic_lock_t m_lock_atomic;
};
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(opal_mutex_t);
OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_mutex_t);
/************************************************************************
*

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

@ -40,7 +40,7 @@ struct opal_mutex_t {
volatile LONG m_lock;
};
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(opal_mutex_t);
OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_mutex_t);
static inline int opal_mutex_trylock(opal_mutex_t *m)

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

@ -50,14 +50,13 @@ struct opal_thread_t {
typedef struct opal_thread_t opal_thread_t;
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(opal_thread_t);
OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_thread_t);
int opal_thread_start(opal_thread_t *);
int opal_thread_join(opal_thread_t *, void **thread_return);
bool opal_thread_self_compare(opal_thread_t*);
opal_thread_t *opal_thread_get_self(void);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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

@ -63,7 +63,7 @@ extern "C" {
* value into the argv array; there is no need to keep the original
* string (i.e., the arg parameter) after invoking this function.
*/
OMPI_DECLSPEC int opal_argv_append(int *argc, char ***argv, const char *arg);
OPAL_DECLSPEC int opal_argv_append(int *argc, char ***argv, const char *arg);
/**
* Append to an argv-style array, but ignore the size of the array.
@ -80,7 +80,7 @@ OMPI_DECLSPEC int opal_argv_append(int *argc, char ***argv, const char *arg);
* argv-style arrays that do not have integers that are actively
* maintaing their sizes.
*/
OMPI_DECLSPEC int opal_argv_append_nosize(char ***argv, const char *arg);
OPAL_DECLSPEC int opal_argv_append_nosize(char ***argv, const char *arg);
/**
* Free a NULL-terminated argv array.
@ -95,7 +95,7 @@ OMPI_DECLSPEC int opal_argv_append_nosize(char ***argv, const char *arg);
* not safe to invoke this function with a non-NULL-terminated argv
* array.
*/
OMPI_DECLSPEC void opal_argv_free(char **argv);
OPAL_DECLSPEC void opal_argv_free(char **argv);
/**
* Split a string into a NULL-terminated argv array.
@ -111,7 +111,7 @@ OMPI_DECLSPEC void opal_argv_free(char **argv);
* argument (i.e., it can be freed after calling this function
* without invalidating the output argv).
*/
OMPI_DECLSPEC char **opal_argv_split(const char *src_string, int delimiter);
OPAL_DECLSPEC char **opal_argv_split(const char *src_string, int delimiter);
/**
* Return the length of a NULL-terminated argv array.
@ -123,7 +123,7 @@ OMPI_DECLSPEC char **opal_argv_split(const char *src_string, int delimiter);
*
* The argv array must be NULL-terminated.
*/
OMPI_DECLSPEC int opal_argv_count(char **argv);
OPAL_DECLSPEC int opal_argv_count(char **argv);
/**
* Join all the elements of an argv array into a single
@ -141,7 +141,7 @@ OMPI_DECLSPEC int opal_argv_count(char **argv);
*
* It is the callers responsibility to free the returned string.
*/
OMPI_DECLSPEC char *opal_argv_join(char **argv, int delimiter);
OPAL_DECLSPEC char *opal_argv_join(char **argv, int delimiter);
/**
* Return the number of bytes consumed by an argv array.
@ -152,7 +152,7 @@ OMPI_DECLSPEC char *opal_argv_join(char **argv, int delimiter);
* array. This includes the number of bytes used by each of the
* strings as well as the pointers used in the argv array.
*/
OMPI_DECLSPEC size_t opal_argv_len(char **argv);
OPAL_DECLSPEC size_t opal_argv_len(char **argv);
/**
* Copy a NULL-terminated argv array.
@ -166,7 +166,7 @@ OMPI_DECLSPEC size_t opal_argv_len(char **argv);
* Specifically, the output argv will be an array of the same length
* as the input argv, and strcmp(argv_in[i], argv_out[i]) will be 0.
*/
OMPI_DECLSPEC char **opal_argv_copy(char **argv);
OPAL_DECLSPEC char **opal_argv_copy(char **argv);
/**
* Delete one or more tokens from the middle of an argv.
@ -193,7 +193,7 @@ OMPI_DECLSPEC char **opal_argv_copy(char **argv);
* free()ed (it is assumed that the argv "owns" the memory that
* the pointer points to).
*/
OMPI_DECLSPEC int opal_argv_delete(int *argc, char ***argv,
OPAL_DECLSPEC int opal_argv_delete(int *argc, char ***argv,
int start, int num_to_delete);
/**
@ -217,7 +217,7 @@ OMPI_DECLSPEC int opal_argv_delete(int *argc, char ***argv,
* source points to are strdup'ed into the new locations in
* target).
*/
OMPI_DECLSPEC int opal_argv_insert(char ***target, int start, char **source);
OPAL_DECLSPEC int opal_argv_insert(char ***target, int start, char **source);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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

@ -238,7 +238,7 @@ extern "C" {
* destructor for opal_cmd_line_t handles will free all memory
* associated with the handle.
*/
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(opal_cmd_line_t);
OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_cmd_line_t);
/**
* Make a command line handle from a table of initializers.
@ -274,7 +274,7 @@ extern "C" {
* };
* \endcode
*/
OMPI_DECLSPEC int opal_cmd_line_create(opal_cmd_line_t *cmd,
OPAL_DECLSPEC int opal_cmd_line_create(opal_cmd_line_t *cmd,
opal_cmd_line_init_t *table);
/**
@ -287,7 +287,7 @@ extern "C" {
* opal_cmd_line_make_opt3(cmd, short_name, NULL, long_name,
* num_params, desc).
*/
OMPI_DECLSPEC int opal_cmd_line_make_opt(opal_cmd_line_t *cmd,
OPAL_DECLSPEC int opal_cmd_line_make_opt(opal_cmd_line_t *cmd,
char short_name,
const char *long_name,
int num_params,
@ -321,7 +321,7 @@ extern "C" {
* used to generate the output from opal_cmd_line_get_usage_msg().
*
*/
OMPI_DECLSPEC int opal_cmd_line_make_opt3(opal_cmd_line_t *cmd,
OPAL_DECLSPEC int opal_cmd_line_make_opt3(opal_cmd_line_t *cmd,
char short_name,
const char *sd_name,
const char *long_name,
@ -379,7 +379,7 @@ extern "C" {
* Invoking this function multiple times on different sets of argv
* tokens is safe, but will erase any previous parsing results.
*/
OMPI_DECLSPEC int opal_cmd_line_parse(opal_cmd_line_t *cmd,
OPAL_DECLSPEC int opal_cmd_line_parse(opal_cmd_line_t *cmd,
bool ignore_unknown,
int argc, char **argv);
@ -404,7 +404,7 @@ extern "C" {
*
* The returned string must be freed by the caller.
*/
OMPI_DECLSPEC char *opal_cmd_line_get_usage_msg(opal_cmd_line_t *cmd);
OPAL_DECLSPEC char *opal_cmd_line_get_usage_msg(opal_cmd_line_t *cmd);
/**
* Test if a given option was taken on the parsed command line.
@ -425,7 +425,7 @@ extern "C" {
* (either by its short or long name) during token parsing.
* Otherwise, it will return false.
*/
OMPI_DECLSPEC bool opal_cmd_line_is_taken(opal_cmd_line_t *cmd,
OPAL_DECLSPEC bool opal_cmd_line_is_taken(opal_cmd_line_t *cmd,
const char *opt);
/**
@ -439,7 +439,7 @@ extern "C" {
* Arguments are added to the handle via the opal_cmd_line_parse()
* function.
*/
OMPI_DECLSPEC int opal_cmd_line_get_argc(opal_cmd_line_t *cmd);
OPAL_DECLSPEC int opal_cmd_line_get_argc(opal_cmd_line_t *cmd);
/**
* Return a string argument parsed on a OPAL command line handle.
@ -458,7 +458,7 @@ extern "C" {
* What is returned is a pointer to the actual string that is on
* the handle; it should not be modified or freed.
*/
OMPI_DECLSPEC char *opal_cmd_line_get_argv(opal_cmd_line_t *cmd,
OPAL_DECLSPEC char *opal_cmd_line_get_argv(opal_cmd_line_t *cmd,
int index);
/**
@ -481,7 +481,7 @@ extern "C" {
* either the option was not specified as part of the OPAL command line
* handle, or opal_cmd_line_parse() was not invoked on this handle.
*/
OMPI_DECLSPEC int opal_cmd_line_get_ninsts(opal_cmd_line_t *cmd,
OPAL_DECLSPEC int opal_cmd_line_get_ninsts(opal_cmd_line_t *cmd,
const char *opt);
/**
@ -511,7 +511,7 @@ extern "C" {
* The returned string should \em not be modified or freed by the
* caller.
*/
OMPI_DECLSPEC char *opal_cmd_line_get_param(opal_cmd_line_t *cmd,
OPAL_DECLSPEC char *opal_cmd_line_get_param(opal_cmd_line_t *cmd,
const char *opt,
int instance_num,
int param_num);
@ -543,7 +543,7 @@ extern "C" {
* of the tail parameters, and must be freed (likely with a call
* to opal_argv_free()) by the caller.
*/
OMPI_DECLSPEC int opal_cmd_line_get_tail(opal_cmd_line_t *cmd, int *tailc,
OPAL_DECLSPEC int opal_cmd_line_get_tail(opal_cmd_line_t *cmd, int *tailc,
char ***tailv);
#if defined(c_plusplus) || defined(__cplusplus)

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

@ -33,6 +33,6 @@
* @retval OPAL_SUCCESS Indicates that the conversion was successful
* @retval OPAL_ERROR Indicates that the conversion was not successful - a fork could not be completed.
*/
OMPI_DECLSPEC int opal_daemon_init(char *working_dir);
OPAL_DECLSPEC int opal_daemon_init(char *working_dir);
#endif /* OPAL_DAEMON_INIT_H */

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

@ -31,7 +31,7 @@
* If errnum is OPAL_ERR_IN_ERRNO, the system perror is called with
* the argument \c msg.
*/
OMPI_DECLSPEC void opal_perror(int errnum, const char *msg);
OPAL_DECLSPEC void opal_perror(int errnum, const char *msg);
/**
* Return string for given error message
@ -47,7 +47,7 @@ OMPI_DECLSPEC void opal_perror(int errnum, const char *msg);
* If the errnum is not a known value, the returned value may be
* overwritten by subsequent calls to opal_strerror.
*/
OMPI_DECLSPEC const char *opal_strerror(int errnum);
OPAL_DECLSPEC const char *opal_strerror(int errnum);
/**
* Return string for given error message
@ -58,7 +58,7 @@ OMPI_DECLSPEC const char *opal_strerror(int errnum);
* if an unknown value for \c errnum is passed, the returned buffer
* will not be overwritten by subsequent calls to opal_strerror_r().
*/
OMPI_DECLSPEC int opal_strerror_r(int errnum, char *strerrbuf, size_t buflen);
OPAL_DECLSPEC int opal_strerror_r(int errnum, char *strerrbuf, size_t buflen);
typedef const char * (*opal_err2str_fn_t)(int errnum);
@ -74,7 +74,7 @@ typedef const char * (*opal_err2str_fn_t)(int errnum);
* \note A maximum of 5 converters can be registered. The 6th
* converter registration attempt will return OPAL_ERR_OUT_OF_RESOURCE
*/
OMPI_DECLSPEC int opal_error_register(const char *project,
OPAL_DECLSPEC int opal_error_register(const char *project,
int err_base, int err_max,
opal_err2str_fn_t converter);

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

@ -53,7 +53,7 @@ extern "C" {
* safe in a multi-threaded environment in which a handler
* for \c SIGCHLD has been registered.
*/
OMPI_DECLSPEC int opal_few(char *argv[], int *status);
OPAL_DECLSPEC int opal_few(char *argv[], int *status);
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -38,7 +38,7 @@ extern "C" {
* @param if_addr (OUT) Interface address buffer
* @param size (IN) Interface address buffer size
*/
OMPI_DECLSPEC int opal_ifnametoaddr(const char* if_name,
OPAL_DECLSPEC int opal_ifnametoaddr(const char* if_name,
struct sockaddr* if_addr, int size);
/**
@ -48,7 +48,7 @@ OMPI_DECLSPEC int opal_ifnametoaddr(const char* if_name,
* @param if_name (OUT) Interface name buffer
* @param size (IN) Interface name buffer size
*/
OMPI_DECLSPEC int opal_ifaddrtoname(const char* if_addr,
OPAL_DECLSPEC int opal_ifaddrtoname(const char* if_addr,
char* if_name, int size);
/**
@ -57,17 +57,17 @@ OMPI_DECLSPEC int opal_ifaddrtoname(const char* if_addr,
* @param if_name (IN) Interface name
* @return Interface index
*/
OMPI_DECLSPEC int opal_ifnametoindex(const char* if_name);
OPAL_DECLSPEC int opal_ifnametoindex(const char* if_name);
/**
* Returns the number of available interfaces.
*/
OMPI_DECLSPEC int opal_ifcount(void);
OPAL_DECLSPEC int opal_ifcount(void);
/**
* Returns the index of the first available interface.
*/
OMPI_DECLSPEC int opal_ifbegin(void);
OPAL_DECLSPEC int opal_ifbegin(void);
/**
* Lookup the current position in the interface list by
@ -76,7 +76,7 @@ OMPI_DECLSPEC int opal_ifbegin(void);
* @param if_index Returns the next available index from the
* current position.
*/
OMPI_DECLSPEC int opal_ifnext(int if_index);
OPAL_DECLSPEC int opal_ifnext(int if_index);
/**
* Lookup an interface by index and return its name.
@ -85,7 +85,7 @@ OMPI_DECLSPEC int opal_ifnext(int if_index);
* @param if_name (OUT) Interface name buffer
* @param size (IN) Interface name buffer size
*/
OMPI_DECLSPEC int opal_ifindextoname(int if_index, char* if_name, int);
OPAL_DECLSPEC int opal_ifindextoname(int if_index, char* if_name, int);
/**
* Lookup an interface by index and return its primary address .
@ -94,7 +94,7 @@ OMPI_DECLSPEC int opal_ifindextoname(int if_index, char* if_name, int);
* @param if_name (OUT) Interface address buffer
* @param size (IN) Interface address buffer size
*/
OMPI_DECLSPEC int opal_ifindextoaddr(int if_index, struct sockaddr*, int);
OPAL_DECLSPEC int opal_ifindextoaddr(int if_index, struct sockaddr*, int);
/**
* Lookup an interface by index and return its network mask.
@ -103,7 +103,7 @@ OMPI_DECLSPEC int opal_ifindextoaddr(int if_index, struct sockaddr*, int);
* @param if_name (OUT) Interface address buffer
* @param size (IN) Interface address buffer size
*/
OMPI_DECLSPEC int opal_ifindextomask(int if_index, struct sockaddr*, int);
OPAL_DECLSPEC int opal_ifindextomask(int if_index, struct sockaddr*, int);
/**
* Determine if given hostname / IP address is a local address
@ -111,7 +111,7 @@ OMPI_DECLSPEC int opal_ifindextomask(int if_index, struct sockaddr*, int);
* @param hostname (IN) Hostname (or stringified IP address)
* @return true if \c hostname is local, false otherwise
*/
OMPI_DECLSPEC bool opal_ifislocal(char *hostname);
OPAL_DECLSPEC bool opal_ifislocal(char *hostname);
/**
* Determine if given IP address is in the localhost range
@ -124,7 +124,7 @@ OMPI_DECLSPEC bool opal_ifislocal(char *hostname);
* @return true if \c addr is a localhost address,
* false otherwise.
*/
OMPI_DECLSPEC bool opal_ifislocalhost(struct sockaddr *addr);
OPAL_DECLSPEC bool opal_ifislocalhost(struct sockaddr *addr);
/**
* Finalize the functions to release malloc'd data
@ -133,7 +133,7 @@ OMPI_DECLSPEC bool opal_ifislocalhost(struct sockaddr *addr);
* @return OPAL_SUCCESS if no problems encountered
* @return OPAL_ERROR if data could not be released
*/
OMPI_DECLSPEC int opal_iffinalize(void);
OPAL_DECLSPEC int opal_iffinalize(void);
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -43,12 +43,12 @@ typedef void (*opal_keyval_parse_fn_t)(const char *key, const char *value);
* called exactly once. In a multithreaded context, calls to
* opal_util_keyval_parse() will serialize multiple calls.
*/
OMPI_DECLSPEC int opal_util_keyval_parse(const char *filename,
OPAL_DECLSPEC int opal_util_keyval_parse(const char *filename,
opal_keyval_parse_fn_t callback);
OMPI_DECLSPEC int opal_util_keyval_parse_init(void);
OPAL_DECLSPEC int opal_util_keyval_parse_init(void);
OMPI_DECLSPEC int opal_util_keyval_parse_finalize(void);
OPAL_DECLSPEC int opal_util_keyval_parse_finalize(void);
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -82,7 +82,7 @@ void opal_malloc_finalize(void);
* This function is only used when --enable-mem-debug was specified to
* configure (or by default if you're building in a SVN checkout).
*/
OMPI_DECLSPEC void *opal_malloc(size_t size, const char *file, int line);
OPAL_DECLSPEC void *opal_malloc(size_t size, const char *file, int line);
/**
* \internal
@ -98,7 +98,7 @@ OMPI_DECLSPEC void *opal_malloc(size_t size, const char *file, int line);
* This function is only used when --enable-mem-debug was specified to
* configure (or by default if you're building in a SVN checkout).
*/
OMPI_DECLSPEC void *opal_calloc(size_t nmembers, size_t size, const char *file, int line);
OPAL_DECLSPEC void *opal_calloc(size_t nmembers, size_t size, const char *file, int line);
/**
* \internal
@ -114,7 +114,7 @@ OMPI_DECLSPEC void *opal_calloc(size_t nmembers, size_t size, const char *file,
* This function is only used when --enable-mem-debug was specified to
* configure (or by default if you're building in a SVN checkout).
*/
OMPI_DECLSPEC void *opal_realloc(void *ptr, size_t size, const char *file, int line);
OPAL_DECLSPEC void *opal_realloc(void *ptr, size_t size, const char *file, int line);
/**
* \internal
@ -130,10 +130,10 @@ OMPI_DECLSPEC void *opal_realloc(void *ptr, size_t size, const char *file, int l
* to configure (or by default if you're building in a SVN
* checkout).
*/
OMPI_DECLSPEC void opal_free(void *addr, const char *file, int line);
OPAL_DECLSPEC void opal_free(void *addr, const char *file, int line);
OMPI_DECLSPEC extern int opal_malloc_debug_level;
OMPI_DECLSPEC extern int opal_malloc_output;
OPAL_DECLSPEC extern int opal_malloc_debug_level;
OPAL_DECLSPEC extern int opal_malloc_output;
static inline void opal_malloc_debug(int level);

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

@ -30,7 +30,7 @@
* @param num (IN) Input number
* @return String containing number (NULL on failure)
*/
OMPI_DECLSPEC char* opal_ltostr(long num);
OPAL_DECLSPEC char* opal_ltostr(long num);
/**
@ -40,6 +40,6 @@ OMPI_DECLSPEC char* opal_ltostr(long num);
* @param num (IN) Input number
* @return String containing number (NULL on failure)
*/
OMPI_DECLSPEC char* opal_dtostr(double num);
OPAL_DECLSPEC char* opal_dtostr(double num);
#endif /* OMPI_NUMTOSTR_UTIL */

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

@ -53,7 +53,7 @@ extern "C" {
* one of the two is NULL, the other list is simply copied to the
* output. If both are NULL, NULL is returned.
*/
OMPI_DECLSPEC char **opal_environ_merge(char **minor, char **major);
OPAL_DECLSPEC char **opal_environ_merge(char **minor, char **major);
/**
* Portable version of setenv(3), allowing editing of any
@ -101,7 +101,7 @@ extern "C" {
* opal_setenv("foo", "bar", true, &my_env);
* \endcode
*/
OMPI_DECLSPEC int opal_setenv(const char *name, const char *value,
OPAL_DECLSPEC int opal_setenv(const char *name, const char *value,
bool overwrite, char ***env);
/**
@ -118,12 +118,12 @@ extern "C" {
* If \em name is found in \em env, the string corresponding to
* that entry is freed and its entry is eliminated from the array.
*/
OMPI_DECLSPEC int opal_unsetenv(const char *name, char ***env);
OPAL_DECLSPEC int opal_unsetenv(const char *name, char ***env);
/**
* So that others don't have to declare it
*/
OMPI_DECLSPEC extern char **opal_environ;
OPAL_DECLSPEC extern char **opal_environ;
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -59,7 +59,7 @@
* specified access permissions.
*/
OMPI_DECLSPEC int opal_os_dirpath_create(const char *path, const mode_t mode);
OPAL_DECLSPEC int opal_os_dirpath_create(const char *path, const mode_t mode);
/**
* Check to see if a directory is empty
@ -69,7 +69,7 @@ OMPI_DECLSPEC int opal_os_dirpath_create(const char *path, const mode_t mode);
* @retval true If the directory is empty
* @retval false If the directory is not empty
*/
OMPI_DECLSPEC bool opal_os_dirpath_is_empty(const char *path);
OPAL_DECLSPEC bool opal_os_dirpath_is_empty(const char *path);
/**
* Check access to the directory
@ -82,7 +82,7 @@ OMPI_DECLSPEC bool opal_os_dirpath_is_empty(const char *path);
* @retval OPAL_ERR_NOT_FOUND If directory does not exist
* @retval OPAL_ERROR If directory exists, and permissions do not match
*/
OMPI_DECLSPEC int opal_os_dirpath_access(const char *path, const mode_t mode );
OPAL_DECLSPEC int opal_os_dirpath_access(const char *path, const mode_t mode );
/**
* Callback for opal_os_dirpath_destroy(). Call for every file/directory before
@ -111,7 +111,7 @@ typedef bool (*opal_os_dirpath_destroy_callback_fn_t)(const char *root, const ch
* @retval OPAL_ERROR If the directory cannnot be removed, accessed properly, or contains
* directories that could not be removed..
*/
OMPI_DECLSPEC int opal_os_dirpath_destroy(const char *path,
OPAL_DECLSPEC int opal_os_dirpath_destroy(const char *path,
bool recursive,
opal_os_dirpath_destroy_callback_fn_t cbfunc);

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

@ -61,6 +61,6 @@
* appropriate to the local operating system. The path_name string has been malloc'd
* and therefore the user is responsible for free'ing the field.
*/
OMPI_DECLSPEC char *opal_os_path(bool relative, ...);
OPAL_DECLSPEC char *opal_os_path(bool relative, ...);
#endif /* OPAL_OS_PATH_H */

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

@ -230,7 +230,7 @@ struct opal_output_stream_t {
* By definition, the default verbose stream has a handle ID of 0,
* and has a verbose level of 0.
*/
OMPI_DECLSPEC bool opal_output_init(void);
OPAL_DECLSPEC bool opal_output_init(void);
/**
* Shut down the output stream system.
@ -238,7 +238,7 @@ struct opal_output_stream_t {
* Shut down the output stream system, including the default verbose
* stream.
*/
OMPI_DECLSPEC void opal_output_finalize(void);
OPAL_DECLSPEC void opal_output_finalize(void);
/**
* Opens an output stream.
@ -262,7 +262,7 @@ struct opal_output_stream_t {
* when open_open() / opal_output() is directed to send output to a
* file but the process session directory does not yet exist.
*/
OMPI_DECLSPEC int opal_output_open(opal_output_stream_t *lds);
OPAL_DECLSPEC int opal_output_open(opal_output_stream_t *lds);
/**
* Re-opens / redirects an output stream.
@ -276,7 +276,7 @@ struct opal_output_stream_t {
* passed is invalid, this call is effectively the same as opening a
* new stream with a specific stream handle.
*/
OMPI_DECLSPEC int opal_output_reopen(int output_id, opal_output_stream_t *lds);
OPAL_DECLSPEC int opal_output_reopen(int output_id, opal_output_stream_t *lds);
/**
* Enables and disables output streams.
@ -295,7 +295,7 @@ struct opal_output_stream_t {
* to the stream via OPAL_OUTPUT() or opal_output() until the output
* is re-enabled.
*/
OMPI_DECLSPEC bool opal_output_switch(int output_id, bool enable);
OPAL_DECLSPEC bool opal_output_switch(int output_id, bool enable);
/**
* \internal
@ -306,7 +306,7 @@ struct opal_output_stream_t {
* typically only invoked after a restart (i.e., in a new process)
* where output streams need to be re-initialized.
*/
OMPI_DECLSPEC void opal_output_reopen_all(void);
OPAL_DECLSPEC void opal_output_reopen_all(void);
/**
* Close an output stream.
@ -318,7 +318,7 @@ struct opal_output_stream_t {
* re-used; it is possible that after a stream is closed, if another
* stream is opened, it will get the same handle value.
*/
OMPI_DECLSPEC void opal_output_close(int output_id);
OPAL_DECLSPEC void opal_output_close(int output_id);
/**
* Main function to send output to a stream.
@ -345,7 +345,7 @@ struct opal_output_stream_t {
* created, opal_output() will automatically create the file and
* writing to it.
*/
OMPI_DECLSPEC void opal_output(int output_id, const char *format, ...);
OPAL_DECLSPEC void opal_output(int output_id, const char *format, ...);
/**
* Send output to a stream only if the passed verbosity level is
@ -375,7 +375,7 @@ struct opal_output_stream_t {
*
* @see opal_output_set_verbosity()
*/
OMPI_DECLSPEC void opal_output_verbose(int verbose_level, int output_id,
OPAL_DECLSPEC void opal_output_verbose(int verbose_level, int output_id,
const char *format, ...);
/**
@ -387,7 +387,7 @@ struct opal_output_stream_t {
* This function sets the verbosity level on a given stream. It
* will be used for all future invocations of opal_output_verbose().
*/
OMPI_DECLSPEC void opal_output_set_verbosity(int output_id, int level);
OPAL_DECLSPEC void opal_output_set_verbosity(int output_id, int level);
/**
* Set characteristics for output files.
@ -429,7 +429,7 @@ struct opal_output_stream_t {
* this function affects both new streams \em and any stream that
* was previously opened but had not yet output anything.
*/
OMPI_DECLSPEC void opal_output_set_output_file_info(const char *dir,
OPAL_DECLSPEC void opal_output_set_output_file_info(const char *dir,
const char *prefix,
char **olddir,
char **oldprefix);

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

@ -46,7 +46,7 @@ extern "C" {
*
* The caller is responsible for freeing the returned string.
*/
OMPI_DECLSPEC char *opal_path_find(char *fname, char **pathv, int mode,
OPAL_DECLSPEC char *opal_path_find(char *fname, char **pathv, int mode,
char **envv);
/**
@ -67,7 +67,7 @@ extern "C" {
*
* The caller is responsible for freeing the returned string.
*/
OMPI_DECLSPEC char *opal_path_findv(char *fname, int mode,
OPAL_DECLSPEC char *opal_path_findv(char *fname, int mode,
char **envv, char *wrkdir);
#if defined(c_plusplus) || defined(__cplusplus)

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

@ -28,6 +28,6 @@
* @returnvalue power of 2 integer same or greater than the input
* parameter.
*/
OMPI_DECLSPEC int opal_round_up_to_nearest_pow2(int input_integer);
OPAL_DECLSPEC int opal_round_up_to_nearest_pow2(int input_integer);
#endif /* OPAL_POW2_H */

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

@ -54,7 +54,7 @@ extern "C" {
*
* THIS IS A PORTABILITY FEATURE: USE snprintf() in CODE.
*/
OMPI_DECLSPEC int opal_snprintf(char *str, size_t size, const char *fmt, ...);
OPAL_DECLSPEC int opal_snprintf(char *str, size_t size, const char *fmt, ...);
/**
@ -79,7 +79,7 @@ OMPI_DECLSPEC int opal_snprintf(char *str, size_t size, const char *fmt, ...);
*
* THIS IS A PORTABILITY FEATURE: USE vsnprintf() in CODE.
*/
OMPI_DECLSPEC int opal_vsnprintf(char *str, size_t size, const char *fmt, va_list ap);
OPAL_DECLSPEC int opal_vsnprintf(char *str, size_t size, const char *fmt, va_list ap);
/**
* Allocates and writes to a string under the control of a format
@ -100,7 +100,7 @@ OMPI_DECLSPEC int opal_vsnprintf(char *str, size_t size, const char *fmt, va_li
*
* THIS IS A PORTABILITY FEATURE: USE asprintf() in CODE.
*/
OMPI_DECLSPEC int opal_asprintf(char **ptr, const char *fmt, ...);
OPAL_DECLSPEC int opal_asprintf(char **ptr, const char *fmt, ...);
/**
@ -124,7 +124,7 @@ OMPI_DECLSPEC int opal_asprintf(char **ptr, const char *fmt, ...);
*
* THIS IS A PORTABILITY FEATURE: USE vasprintf() in CODE.
*/
OMPI_DECLSPEC int opal_vasprintf(char **ptr, const char *fmt, va_list ap);
OPAL_DECLSPEC int opal_vasprintf(char **ptr, const char *fmt, va_list ap);
#if defined(c_plusplus) || defined(__cplusplus)

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

@ -113,7 +113,7 @@ extern "C" {
* based on the topic, and displays it. If want_error_header is
* true, a header and footer of asterisks are also displayed.
*/
OMPI_DECLSPEC int opal_show_help(const char *filename, const char *topic,
OPAL_DECLSPEC int opal_show_help(const char *filename, const char *topic,
bool want_error_header, ...);
/**
@ -125,7 +125,7 @@ OMPI_DECLSPEC int opal_show_help(const char *filename, const char *topic,
* flex parser since we may not hit the <<EOF>> rule and call this
* function automatically.
*/
OMPI_DECLSPEC int opal_show_help_finish_parsing(void);
OPAL_DECLSPEC int opal_show_help_finish_parsing(void);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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

@ -37,6 +37,6 @@
* is not a valid signal-number
*
*/
OMPI_DECLSPEC int opal_util_register_stackhandlers (void);
OPAL_DECLSPEC int opal_util_register_stackhandlers (void);
#endif /* OMPI_STACKTRACE_H */

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

@ -33,6 +33,6 @@
#define strncpy opal_strncpy
OMPI_DECLSPEC char *opal_strncpy(char *dest, const char *src, size_t len);
OPAL_DECLSPEC char *opal_strncpy(char *dest, const char *src, size_t len);
#endif /* OPAL_STRNCPY_H */

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

@ -62,8 +62,8 @@ extern "C" {
extern int opal_trace_handle;
OMPI_DECLSPEC void opal_trace_init(void);
OMPI_DECLSPEC void opal_trace_finalize(void);
OPAL_DECLSPEC void opal_trace_init(void);
OPAL_DECLSPEC void opal_trace_finalize(void);
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -28,9 +28,9 @@ extern "C"
{
#endif
OMPI_DECLSPEC pid_t waitpid (pid_t pid, int *status, int options) ;
OPAL_DECLSPEC pid_t waitpid (pid_t pid, int *status, int options) ;
OMPI_DECLSPEC int kill(pid_t pid, int sig) ;
OPAL_DECLSPEC int kill(pid_t pid, int sig) ;
#if defined(c_plusplus) || defined (__cplusplus)
}

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

@ -23,7 +23,7 @@
#define EPOCHFILETIME (116444736000000000LL)
OMPI_DECLSPEC int
OPAL_DECLSPEC int
gettimeofday(struct timeval *tv, struct timezone *tz)
{

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

@ -176,7 +176,7 @@ extern "C"
{
#endif
OMPI_DECLSPEC int gettimeofday (struct timeval *tv, struct timezone *tz);
OPAL_DECLSPEC int gettimeofday (struct timeval *tv, struct timezone *tz);
#if defined(c_plusplus) || defined (__cplusplus)
}

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

@ -26,7 +26,7 @@
of code to handle the windows error flags
*/
OMPI_DECLSPEC int
OPAL_DECLSPEC int
writev( int fd, struct iovec * iov, int cnt )
{
int err;
@ -41,7 +41,7 @@ writev( int fd, struct iovec * iov, int cnt )
}
OMPI_DECLSPEC int
OPAL_DECLSPEC int
readv( int fd, struct iovec * iov, int cnt )
{
int err;

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

@ -40,7 +40,7 @@ extern "C" {
buffers are used in the order specified. Operates just like write
except that data is taken from iov instead of a contiguous buffer.
*/
OMPI_DECLSPEC int writev (int fd, struct iovec *iov, int cnt);
OPAL_DECLSPEC int writev (int fd, struct iovec *iov, int cnt);
/*
readv reads data from file descriptor fd, and puts the result in the
@ -49,7 +49,7 @@ OMPI_DECLSPEC int writev (int fd, struct iovec *iov, int cnt);
like read except that data is put in iov instead of a contiguous
buffer.
*/
OMPI_DECLSPEC int readv (int fd, struct iovec *iov, int cnt);
OPAL_DECLSPEC int readv (int fd, struct iovec *iov, int cnt);
#if defined(c_plusplus) || defined (__cplusplus)
}

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

@ -29,7 +29,7 @@
5. machine: GetSystemInfo
*/
OMPI_DECLSPEC int
OPAL_DECLSPEC int
uname( struct utsname *un )
{

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

@ -39,7 +39,7 @@ struct utsname {
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OMPI_DECLSPEC int uname(struct utsname *un);
OPAL_DECLSPEC int uname(struct utsname *un);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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

@ -59,7 +59,7 @@ struct orte_bitmap_t {
typedef struct orte_bitmap_t orte_bitmap_t;
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(orte_bitmap_t);
ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_bitmap_t);
/**
@ -73,7 +73,7 @@ OMPI_DECLSPEC OBJ_CLASS_DECLARATION(orte_bitmap_t);
* @return ORTE error code or success
*
*/
OMPI_DECLSPEC int orte_bitmap_resize(orte_bitmap_t *bm, orte_std_cntr_t bit);
ORTE_DECLSPEC int orte_bitmap_resize(orte_bitmap_t *bm, orte_std_cntr_t bit);
/**
@ -86,7 +86,7 @@ OMPI_DECLSPEC int orte_bitmap_resize(orte_bitmap_t *bm, orte_std_cntr_t bit);
* @return OMPI error code or success
*
*/
OMPI_DECLSPEC int orte_bitmap_set_bit(orte_bitmap_t *bm, orte_std_cntr_t bit);
ORTE_DECLSPEC int orte_bitmap_set_bit(orte_bitmap_t *bm, orte_std_cntr_t bit);
/**
@ -98,7 +98,7 @@ OMPI_DECLSPEC int orte_bitmap_set_bit(orte_bitmap_t *bm, orte_std_cntr_t bit);
* @return ORTE error code if the bit is out of range, else success
*
*/
OMPI_DECLSPEC int orte_bitmap_clear_bit(orte_bitmap_t *bm, orte_std_cntr_t bit);
ORTE_DECLSPEC int orte_bitmap_clear_bit(orte_bitmap_t *bm, orte_std_cntr_t bit);
/**
@ -111,7 +111,7 @@ OMPI_DECLSPEC int orte_bitmap_clear_bit(orte_bitmap_t *bm, orte_std_cntr_t bit);
* 0 if the bit is not set
*
*/
OMPI_DECLSPEC int orte_bitmap_is_set_bit(orte_bitmap_t *bm, orte_std_cntr_t bit);
ORTE_DECLSPEC int orte_bitmap_is_set_bit(orte_bitmap_t *bm, orte_std_cntr_t bit);
/**
@ -122,7 +122,7 @@ OMPI_DECLSPEC int orte_bitmap_is_set_bit(orte_bitmap_t *bm, orte_std_cntr_t bit)
* @return err ORTE_SUCCESS on success
*/
OMPI_DECLSPEC int orte_bitmap_find_and_set_first_unset_bit(orte_bitmap_t *bm,
ORTE_DECLSPEC int orte_bitmap_find_and_set_first_unset_bit(orte_bitmap_t *bm,
orte_std_cntr_t *position);
@ -133,7 +133,7 @@ OMPI_DECLSPEC int orte_bitmap_find_and_set_first_unset_bit(orte_bitmap_t *bm,
* @return ORTE error code if bm is NULL
*
*/
OMPI_DECLSPEC int orte_bitmap_clear_all_bits(orte_bitmap_t *bm);
ORTE_DECLSPEC int orte_bitmap_clear_all_bits(orte_bitmap_t *bm);
/**
@ -142,7 +142,7 @@ OMPI_DECLSPEC int orte_bitmap_clear_all_bits(orte_bitmap_t *bm);
* @return ORTE error code if bm is NULL
*
*/
OMPI_DECLSPEC int orte_bitmap_set_all_bits(orte_bitmap_t *bm);
ORTE_DECLSPEC int orte_bitmap_set_all_bits(orte_bitmap_t *bm);
/**

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

@ -69,7 +69,7 @@ typedef struct orte_pointer_array_t orte_pointer_array_t;
/**
* Class declaration
*/
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(orte_pointer_array_t);
ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_pointer_array_t);
/**
@ -84,7 +84,7 @@ OMPI_DECLSPEC OBJ_CLASS_DECLARATION(orte_pointer_array_t);
* @retval ORTE_ERROR(s) Appropriate error code
*
*/
OMPI_DECLSPEC int orte_pointer_array_init(orte_pointer_array_t **array,
ORTE_DECLSPEC int orte_pointer_array_init(orte_pointer_array_t **array,
orte_std_cntr_t initial_allocation,
orte_std_cntr_t max_size, orte_std_cntr_t block_size);
@ -97,7 +97,7 @@ OMPI_DECLSPEC int orte_pointer_array_init(orte_pointer_array_t **array,
* @param (OUT) Index of inserted array element.
* @return Return value less than zero indicates an error.
*/
OMPI_DECLSPEC int orte_pointer_array_add(orte_std_cntr_t *index, orte_pointer_array_t *array, void *ptr);
ORTE_DECLSPEC int orte_pointer_array_add(orte_std_cntr_t *index, orte_pointer_array_t *array, void *ptr);
/**
* Set the value of an element in array
@ -109,7 +109,7 @@ OMPI_DECLSPEC int orte_pointer_array_add(orte_std_cntr_t *index, orte_pointer_ar
*
* @return Error code. (-1) indicates an error.
*/
OMPI_DECLSPEC int orte_pointer_array_set_item(orte_pointer_array_t *array,
ORTE_DECLSPEC int orte_pointer_array_set_item(orte_pointer_array_t *array,
orte_std_cntr_t index, void *value);
/**
@ -158,7 +158,7 @@ static inline orte_std_cntr_t orte_pointer_array_get_size(orte_pointer_array_t *
* Simple function to set the size of the array in order to
* hide the member field from external users.
*/
OMPI_DECLSPEC int orte_pointer_array_set_size(orte_pointer_array_t *array, orte_std_cntr_t size);
ORTE_DECLSPEC int orte_pointer_array_set_size(orte_pointer_array_t *array, orte_std_cntr_t size);
/**
@ -220,7 +220,7 @@ static inline void orte_pointer_array_free_clear(orte_pointer_array_t *array)
* In contrary to array_set, this function does not allow to overwrite
* a value, unless the previous value is NULL ( equiv. to free ).
*/
OMPI_DECLSPEC bool orte_pointer_array_test_and_set_item (orte_pointer_array_t *table,
ORTE_DECLSPEC bool orte_pointer_array_test_and_set_item (orte_pointer_array_t *table,
orte_std_cntr_t index,
void *value);
#if defined(c_plusplus) || defined(__cplusplus)

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

@ -42,7 +42,7 @@ extern "C" {
*
*/
OMPI_DECLSPEC void *orte_hash_table_get_proc(
ORTE_DECLSPEC void *orte_hash_table_get_proc(
opal_hash_table_t* table,
const orte_process_name_t* key);
@ -56,7 +56,7 @@ OMPI_DECLSPEC void *orte_hash_table_get_proc(
*
*/
OMPI_DECLSPEC int orte_hash_table_set_proc(
ORTE_DECLSPEC int orte_hash_table_set_proc(
opal_hash_table_t* table,
const orte_process_name_t*,
void* value);
@ -70,7 +70,7 @@ OMPI_DECLSPEC int orte_hash_table_set_proc(
*
*/
OMPI_DECLSPEC int orte_hash_table_remove_proc(
ORTE_DECLSPEC int orte_hash_table_remove_proc(
opal_hash_table_t* table,
const orte_process_name_t* key);

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

@ -39,7 +39,7 @@
extern "C" {
#endif
OMPI_DECLSPEC extern opal_class_t orte_value_array_t_class;
ORTE_DECLSPEC extern opal_class_t orte_value_array_t_class;
struct orte_value_array_t
@ -129,7 +129,7 @@ static inline orte_std_cntr_t orte_value_array_get_size(orte_value_array_t* arra
* return the new size.
*/
OMPI_DECLSPEC int orte_value_array_set_size(orte_value_array_t* array, orte_std_cntr_t size);
ORTE_DECLSPEC int orte_value_array_set_size(orte_value_array_t* array, orte_std_cntr_t size);
/**

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

@ -338,12 +338,12 @@ typedef int (*orte_dss_load_fn_t)(orte_buffer_t *buffer,
* structure gets loaded, so we provide an "open" call that is
* executed as part of the program startup.
*/
OMPI_DECLSPEC int orte_dss_open(void);
ORTE_DECLSPEC int orte_dss_open(void);
/**
* DSS finalize function
*/
OMPI_DECLSPEC int orte_dss_close(void);
ORTE_DECLSPEC int orte_dss_close(void);
/**
@ -592,7 +592,7 @@ struct orte_dss_t {
};
typedef struct orte_dss_t orte_dss_t;
OMPI_DECLSPEC extern orte_dss_t orte_dss; /* holds dss function pointers */
ORTE_DECLSPEC extern orte_dss_t orte_dss; /* holds dss function pointers */
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -39,7 +39,7 @@ orte_pointer_array_t *orte_dss_types;
orte_data_type_t orte_dss_num_reg_types;
orte_dss_buffer_type_t default_buf_type;
OMPI_DECLSPEC orte_dss_t orte_dss = {
orte_dss_t orte_dss = {
orte_dss_set,
orte_dss_get,
orte_dss_arith,

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

@ -100,7 +100,7 @@ typedef uint8_t orte_dss_buffer_type_t;
typedef struct orte_buffer_t orte_buffer_t;
/** formalize the declaration */
OMPI_DECLSPEC OBJ_CLASS_DECLARATION (orte_buffer_t);
ORTE_DECLSPEC OBJ_CLASS_DECLARATION (orte_buffer_t);
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -3,7 +3,7 @@
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* Copyright (c) 2004-2006 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
@ -23,6 +23,27 @@
#define ORTE_CONFIG_H_
#include "opal_config.h"
#define ORTE_DECLSPEC OMPI_DECLSPEC
#if defined(__WINDOWS__)
# if defined(_USRDLL) /* building shared libraries (.DLL) */
# if defined(ORTE_EXPORTS)
# define ORTE_DECLSPEC __declspec(dllexport)
# else
# define ORTE_DECLSPEC __declspec(dllimport)
# endif
# if defined(ORTE_MODULE_EXPORTS)
# define ORTE_MODULE_DECLSPEC __declspec(dllexport)
# else
# define ORTE_MODULE_DECLSPEC __declspec(dllimport)
# endif
# else /* building static library */
# define ORTE_DECLSPEC
# define ORTE_MODULE_DECLSPEC
# endif
#else
#define ORTE_DECLSPEC
#define ORTE_MODULE_DECLSPEC
#endif /* defined(__WINDOWS__) */
#endif

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

@ -47,36 +47,36 @@ extern "C" {
/*
* function definitions
*/
OMPI_DECLSPEC int orte_errmgr_base_open(void);
OMPI_DECLSPEC int orte_errmgr_base_select(bool *allow_multi_user_threads,
ORTE_DECLSPEC int orte_errmgr_base_open(void);
ORTE_DECLSPEC int orte_errmgr_base_select(bool *allow_multi_user_threads,
bool *have_hidden_threads);
OMPI_DECLSPEC int orte_errmgr_base_close(void);
ORTE_DECLSPEC int orte_errmgr_base_close(void);
/*
* Base functions that are common to all implementations - can be overridden
*/
OMPI_DECLSPEC void orte_errmgr_base_log(int error_code, char *filename, int line);
ORTE_DECLSPEC void orte_errmgr_base_log(int error_code, char *filename, int line);
OMPI_DECLSPEC void orte_errmgr_base_proc_aborted(orte_process_name_t *proc);
ORTE_DECLSPEC void orte_errmgr_base_proc_aborted(orte_process_name_t *proc);
OMPI_DECLSPEC void orte_errmgr_base_incomplete_start(orte_jobid_t job);
ORTE_DECLSPEC void orte_errmgr_base_incomplete_start(orte_jobid_t job);
OMPI_DECLSPEC void orte_errmgr_base_error_detected(int error_code);
ORTE_DECLSPEC void orte_errmgr_base_error_detected(int error_code);
OMPI_DECLSPEC int orte_errmgr_base_register_job(orte_jobid_t job);
ORTE_DECLSPEC int orte_errmgr_base_register_job(orte_jobid_t job);
OMPI_DECLSPEC void orte_errmgr_base_abort(void);
ORTE_DECLSPEC void orte_errmgr_base_abort(void);
/*
* globals that might be needed
*/
OMPI_DECLSPEC extern int orte_errmgr_base_output;
OMPI_DECLSPEC extern bool orte_errmgr_base_selected;
OMPI_DECLSPEC extern bool orte_errmgr_initialized;
OMPI_DECLSPEC extern opal_list_t orte_errmgr_base_components_available;
OMPI_DECLSPEC extern mca_errmgr_base_component_t orte_errmgr_base_selected_component;
ORTE_DECLSPEC extern int orte_errmgr_base_output;
ORTE_DECLSPEC extern bool orte_errmgr_base_selected;
ORTE_DECLSPEC extern bool orte_errmgr_initialized;
ORTE_DECLSPEC extern opal_list_t orte_errmgr_base_components_available;
ORTE_DECLSPEC extern mca_errmgr_base_component_t orte_errmgr_base_selected_component;
/*
* external API functions will be documented in the mca/errmgr/errmgr.h file

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

@ -173,7 +173,7 @@ typedef mca_errmgr_base_component_1_0_0_t mca_errmgr_base_component_t;
/* Global structure for accessing error manager functions
*/
OMPI_DECLSPEC extern orte_errmgr_base_module_t orte_errmgr; /* holds selected module's function pointers */
ORTE_DECLSPEC extern orte_errmgr_base_module_t orte_errmgr; /* holds selected module's function pointers */
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -116,9 +116,9 @@ extern "C" {
typedef uint8_t orte_gpr_cmd_flag_t;
#define ORTE_GPR_CMD_T ORTE_UINT8
OMPI_DECLSPEC int orte_gpr_base_open(void);
OMPI_DECLSPEC int orte_gpr_base_select(void);
OMPI_DECLSPEC int orte_gpr_base_close(void);
ORTE_DECLSPEC int orte_gpr_base_open(void);
ORTE_DECLSPEC int orte_gpr_base_select(void);
ORTE_DECLSPEC int orte_gpr_base_close(void);
int orte_gpr_base_create_value(orte_gpr_value_t **value,
orte_gpr_addr_mode_t addr_mode,
@ -131,17 +131,17 @@ int orte_gpr_base_create_keyval(orte_gpr_keyval_t **keyval,
orte_data_type_t type,
void *data);
OMPI_DECLSPEC int orte_gpr_base_put_1(orte_gpr_addr_mode_t addr_mode,
ORTE_DECLSPEC int orte_gpr_base_put_1(orte_gpr_addr_mode_t addr_mode,
char *segment, char **tokens,
char *key, orte_data_value_t *value);
OMPI_DECLSPEC int orte_gpr_base_put_N(orte_gpr_addr_mode_t addr_mode,
ORTE_DECLSPEC int orte_gpr_base_put_N(orte_gpr_addr_mode_t addr_mode,
char *segment, char **tokens,
orte_std_cntr_t n, char **keys,
orte_data_value_t **data_values);
OMPI_DECLSPEC int orte_gpr_base_subscribe_1(orte_gpr_subscription_id_t *id,
ORTE_DECLSPEC int orte_gpr_base_subscribe_1(orte_gpr_subscription_id_t *id,
char *trig_name,
char *sub_name,
orte_gpr_notify_action_t action,
@ -153,7 +153,7 @@ int orte_gpr_base_create_keyval(orte_gpr_keyval_t **keyval,
void *user_tag);
OMPI_DECLSPEC int orte_gpr_base_subscribe_N(orte_gpr_subscription_id_t *id,
ORTE_DECLSPEC int orte_gpr_base_subscribe_N(orte_gpr_subscription_id_t *id,
char *trig_name,
char *sub_name,
orte_gpr_notify_action_t action,
@ -166,7 +166,7 @@ int orte_gpr_base_create_keyval(orte_gpr_keyval_t **keyval,
void *user_tag);
OMPI_DECLSPEC int orte_gpr_base_define_trigger(orte_gpr_trigger_id_t *id,
ORTE_DECLSPEC int orte_gpr_base_define_trigger(orte_gpr_trigger_id_t *id,
char *trig_name,
orte_gpr_trigger_action_t action,
orte_gpr_addr_mode_t addr_mode,
@ -177,7 +177,7 @@ int orte_gpr_base_create_keyval(orte_gpr_keyval_t **keyval,
orte_gpr_trigger_cb_fn_t cbfunc,
void *user_tag);
OMPI_DECLSPEC int orte_gpr_base_define_trigger_level(orte_gpr_trigger_id_t *id,
ORTE_DECLSPEC int orte_gpr_base_define_trigger_level(orte_gpr_trigger_id_t *id,
char *trig_name,
orte_gpr_trigger_action_t action,
orte_gpr_addr_mode_t addr_mode,
@ -190,86 +190,86 @@ int orte_gpr_base_create_keyval(orte_gpr_keyval_t **keyval,
void *user_tag);
/* general usage functions */
OMPI_DECLSPEC int orte_gpr_base_pack_delete_segment(orte_buffer_t *cmd,
ORTE_DECLSPEC int orte_gpr_base_pack_delete_segment(orte_buffer_t *cmd,
char *segment);
OMPI_DECLSPEC int orte_gpr_base_unpack_delete_segment(orte_buffer_t *buffer, int *ret);
ORTE_DECLSPEC int orte_gpr_base_unpack_delete_segment(orte_buffer_t *buffer, int *ret);
OMPI_DECLSPEC int orte_gpr_base_pack_delete_entries(orte_buffer_t *buffer,
ORTE_DECLSPEC int orte_gpr_base_pack_delete_entries(orte_buffer_t *buffer,
orte_gpr_addr_mode_t mode,
char *segment, char **tokens, char **keys);
OMPI_DECLSPEC int orte_gpr_base_unpack_delete_entries(orte_buffer_t *buffer, int *ret);
ORTE_DECLSPEC int orte_gpr_base_unpack_delete_entries(orte_buffer_t *buffer, int *ret);
OMPI_DECLSPEC int orte_gpr_base_pack_index(orte_buffer_t *cmd, char *segment);
OMPI_DECLSPEC int orte_gpr_base_unpack_index(orte_buffer_t *cmd, int *ret, orte_std_cntr_t *cnt,
ORTE_DECLSPEC int orte_gpr_base_pack_index(orte_buffer_t *cmd, char *segment);
ORTE_DECLSPEC int orte_gpr_base_unpack_index(orte_buffer_t *cmd, int *ret, orte_std_cntr_t *cnt,
char ***index);
OMPI_DECLSPEC int orte_gpr_base_pack_subscribe(orte_buffer_t *cmd,
ORTE_DECLSPEC int orte_gpr_base_pack_subscribe(orte_buffer_t *cmd,
orte_std_cntr_t num_subs,
orte_gpr_subscription_t **subscriptions,
orte_std_cntr_t num_trigs, orte_gpr_trigger_t **trig);
OMPI_DECLSPEC int orte_gpr_base_unpack_subscribe(orte_buffer_t *buffer, int *ret);
ORTE_DECLSPEC int orte_gpr_base_unpack_subscribe(orte_buffer_t *buffer, int *ret);
OMPI_DECLSPEC int orte_gpr_base_pack_unsubscribe(orte_buffer_t *cmd,
ORTE_DECLSPEC int orte_gpr_base_pack_unsubscribe(orte_buffer_t *cmd,
orte_gpr_subscription_id_t id);
OMPI_DECLSPEC int orte_gpr_base_unpack_unsubscribe(orte_buffer_t *buffer, int *ret);
ORTE_DECLSPEC int orte_gpr_base_unpack_unsubscribe(orte_buffer_t *buffer, int *ret);
OMPI_DECLSPEC int orte_gpr_base_pack_cancel_trigger(orte_buffer_t *cmd,
ORTE_DECLSPEC int orte_gpr_base_pack_cancel_trigger(orte_buffer_t *cmd,
orte_gpr_trigger_id_t id);
OMPI_DECLSPEC int orte_gpr_base_unpack_cancel_trigger(orte_buffer_t *buffer, int *ret);
ORTE_DECLSPEC int orte_gpr_base_unpack_cancel_trigger(orte_buffer_t *buffer, int *ret);
OMPI_DECLSPEC int orte_gpr_base_pack_put(orte_buffer_t *cmd,
ORTE_DECLSPEC int orte_gpr_base_pack_put(orte_buffer_t *cmd,
orte_std_cntr_t cnt, orte_gpr_value_t **values);
OMPI_DECLSPEC int orte_gpr_base_unpack_put(orte_buffer_t *buffer, int *ret);
ORTE_DECLSPEC int orte_gpr_base_unpack_put(orte_buffer_t *buffer, int *ret);
OMPI_DECLSPEC int orte_gpr_base_pack_get(orte_buffer_t *cmd,
ORTE_DECLSPEC int orte_gpr_base_pack_get(orte_buffer_t *cmd,
orte_gpr_addr_mode_t mode,
char *segment, char **tokens, char **keys);
OMPI_DECLSPEC int orte_gpr_base_pack_get_conditional(orte_buffer_t *cmd,
ORTE_DECLSPEC int orte_gpr_base_pack_get_conditional(orte_buffer_t *cmd,
orte_gpr_addr_mode_t mode,
char *segment, char **tokens, char **keys,
orte_std_cntr_t num_conditions, orte_gpr_keyval_t **conditions);
OMPI_DECLSPEC int orte_gpr_base_unpack_get(orte_buffer_t *buffer, int *ret,
ORTE_DECLSPEC int orte_gpr_base_unpack_get(orte_buffer_t *buffer, int *ret,
orte_std_cntr_t *cnt, orte_gpr_value_t ***values);
OMPI_DECLSPEC int orte_gpr_base_pack_dump_all(orte_buffer_t *cmd);
OMPI_DECLSPEC int orte_gpr_base_pack_dump_segments(orte_buffer_t *cmd, char *segment);
OMPI_DECLSPEC int orte_gpr_base_pack_dump_triggers(orte_buffer_t *cmd,
ORTE_DECLSPEC int orte_gpr_base_pack_dump_all(orte_buffer_t *cmd);
ORTE_DECLSPEC int orte_gpr_base_pack_dump_segments(orte_buffer_t *cmd, char *segment);
ORTE_DECLSPEC int orte_gpr_base_pack_dump_triggers(orte_buffer_t *cmd,
orte_gpr_trigger_id_t start);
OMPI_DECLSPEC int orte_gpr_base_pack_dump_subscriptions(orte_buffer_t *cmd,
ORTE_DECLSPEC int orte_gpr_base_pack_dump_subscriptions(orte_buffer_t *cmd,
orte_gpr_subscription_id_t start);
OMPI_DECLSPEC int orte_gpr_base_pack_dump_a_trigger(orte_buffer_t *cmd,
ORTE_DECLSPEC int orte_gpr_base_pack_dump_a_trigger(orte_buffer_t *cmd,
char *name, orte_gpr_trigger_id_t id);
OMPI_DECLSPEC int orte_gpr_base_pack_dump_a_subscription(orte_buffer_t *cmd,
ORTE_DECLSPEC int orte_gpr_base_pack_dump_a_subscription(orte_buffer_t *cmd,
char *name,
orte_gpr_subscription_id_t id);
OMPI_DECLSPEC int orte_gpr_base_pack_dump_callbacks(orte_buffer_t *cmd);
ORTE_DECLSPEC int orte_gpr_base_pack_dump_callbacks(orte_buffer_t *cmd);
OMPI_DECLSPEC int orte_gpr_base_print_dump(orte_buffer_t *buffer);
ORTE_DECLSPEC int orte_gpr_base_print_dump(orte_buffer_t *buffer);
OMPI_DECLSPEC int orte_gpr_base_dump_keyval_value(orte_buffer_t *buffer,
ORTE_DECLSPEC int orte_gpr_base_dump_keyval_value(orte_buffer_t *buffer,
orte_gpr_keyval_t *iptr);
OMPI_DECLSPEC int orte_gpr_base_pack_dump_segment_size(orte_buffer_t *cmd, char *segment);
OMPI_DECLSPEC int orte_gpr_base_dump_notify_msg(orte_buffer_t *buffer,
ORTE_DECLSPEC int orte_gpr_base_pack_dump_segment_size(orte_buffer_t *cmd, char *segment);
ORTE_DECLSPEC int orte_gpr_base_dump_notify_msg(orte_buffer_t *buffer,
orte_gpr_notify_message_t *msg);
OMPI_DECLSPEC int orte_gpr_base_dump_notify_data(orte_buffer_t *buffer,
ORTE_DECLSPEC int orte_gpr_base_dump_notify_data(orte_buffer_t *buffer,
orte_gpr_notify_data_t *data);
OMPI_DECLSPEC int orte_gpr_base_dump_value(orte_buffer_t *buffer,
ORTE_DECLSPEC int orte_gpr_base_dump_value(orte_buffer_t *buffer,
orte_gpr_value_t *value);
OMPI_DECLSPEC int orte_gpr_base_pack_cleanup_job(orte_buffer_t *buffer,
ORTE_DECLSPEC int orte_gpr_base_pack_cleanup_job(orte_buffer_t *buffer,
orte_jobid_t jobid);
OMPI_DECLSPEC int orte_gpr_base_unpack_cleanup_job(orte_buffer_t *buffer, int *ret);
ORTE_DECLSPEC int orte_gpr_base_unpack_cleanup_job(orte_buffer_t *buffer, int *ret);
OMPI_DECLSPEC int orte_gpr_base_pack_cleanup_proc(orte_buffer_t *buffer,
ORTE_DECLSPEC int orte_gpr_base_pack_cleanup_proc(orte_buffer_t *buffer,
orte_process_name_t *proc);
OMPI_DECLSPEC int orte_gpr_base_unpack_cleanup_proc(orte_buffer_t *buffer, int *ret);
ORTE_DECLSPEC int orte_gpr_base_unpack_cleanup_proc(orte_buffer_t *buffer, int *ret);
OMPI_DECLSPEC int orte_gpr_base_pack_increment_value(orte_buffer_t *cmd, orte_gpr_value_t *value);
OMPI_DECLSPEC int orte_gpr_base_unpack_increment_value(orte_buffer_t *buffer, int *ret);
ORTE_DECLSPEC int orte_gpr_base_pack_increment_value(orte_buffer_t *cmd, orte_gpr_value_t *value);
ORTE_DECLSPEC int orte_gpr_base_unpack_increment_value(orte_buffer_t *buffer, int *ret);
OMPI_DECLSPEC int orte_gpr_base_pack_decrement_value(orte_buffer_t *cmd, orte_gpr_value_t *value);
OMPI_DECLSPEC int orte_gpr_base_unpack_decrement_value(orte_buffer_t *buffer, int *ret);
ORTE_DECLSPEC int orte_gpr_base_pack_decrement_value(orte_buffer_t *cmd, orte_gpr_value_t *value);
ORTE_DECLSPEC int orte_gpr_base_unpack_decrement_value(orte_buffer_t *buffer, int *ret);
/* GPR DATA TYPE PACKING FUNCTIONS */
int orte_gpr_base_pack_cmd(orte_buffer_t *buffer, void *src,
@ -472,11 +472,11 @@ int orte_gpr_base_print_notify_msg(char **output, char *prefix, orte_gpr_notify_
/*
* globals that might be needed inside the gpr
*/
OMPI_DECLSPEC extern int orte_gpr_base_output;
OMPI_DECLSPEC extern size_t orte_gpr_array_max_size, orte_gpr_array_block_size;
OMPI_DECLSPEC extern bool orte_gpr_base_selected;
OMPI_DECLSPEC extern opal_list_t orte_gpr_base_components_available;
OMPI_DECLSPEC extern mca_gpr_base_component_t orte_gpr_base_selected_component;
ORTE_DECLSPEC extern int orte_gpr_base_output;
ORTE_DECLSPEC extern size_t orte_gpr_array_max_size, orte_gpr_array_block_size;
ORTE_DECLSPEC extern bool orte_gpr_base_selected;
ORTE_DECLSPEC extern opal_list_t orte_gpr_base_components_available;
ORTE_DECLSPEC extern mca_gpr_base_component_t orte_gpr_base_selected_component;
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -764,7 +764,7 @@ typedef mca_gpr_base_component_1_0_0_t mca_gpr_base_component_t;
/*
* global module that holds function pointers
*/
OMPI_DECLSPEC extern orte_gpr_base_module_t orte_gpr; /* holds selected module's function pointers */
ORTE_DECLSPEC extern orte_gpr_base_module_t orte_gpr; /* holds selected module's function pointers */
#if defined(c_plusplus) || defined(__cplusplus)
}

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

@ -126,7 +126,7 @@ typedef struct {
orte_data_value_t *value; /* value */
} orte_gpr_keyval_t;
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(orte_gpr_keyval_t);
ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_gpr_keyval_t);
#define ORTE_GPR_KEYVAL_EMPTY {{OBJ_CLASS(orte_gpr_keyval_t),0}, NULL, NULL}
@ -151,7 +151,7 @@ typedef struct {
char **tokens; /**< List of tokens that described the container */
} orte_gpr_value_t;
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(orte_gpr_value_t);
ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_gpr_value_t);
#define ORTE_GPR_VALUE_EMPTY {{OBJ_CLASS(orte_gpr_value_t),0}, 0, NULL, 0, NULL, 0, NULL}
/** Return structure for notification messages
@ -168,7 +168,7 @@ typedef struct {
orte_pointer_array_t *values; /**< Array of value objects returned */
} orte_gpr_notify_data_t;
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(orte_gpr_notify_data_t);
ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_gpr_notify_data_t);
/** Return message for notify requests
*/
@ -188,7 +188,7 @@ typedef struct {
orte_pointer_array_t *data; /**< Contiguous array of pointers to data objects */
} orte_gpr_notify_message_t;
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(orte_gpr_notify_message_t);
ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_gpr_notify_message_t);
/** Notify callback function
* notify_msg = message containing data provided by trigger
@ -227,7 +227,7 @@ typedef struct {
void *user_tag; /**< User-provided tag to be used in cbfunc */
} orte_gpr_subscription_t;
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(orte_gpr_subscription_t);
ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_gpr_subscription_t);
#define ORTE_GPR_SUBSCRIPTION_EMPTY {{OBJ_CLASS(orte_gpr_subscription_t),0}, NULL, ORTE_GPR_SUBSCRIPTION_ID_MAX, 0, 0, NULL, 0, NULL}
/** Structure for registering triggers
@ -248,7 +248,7 @@ typedef struct {
void *user_tag; /**< User-provided tag to be used in cbfunc */
} orte_gpr_trigger_t;
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(orte_gpr_trigger_t);
ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_gpr_trigger_t);
#define ORTE_GPR_TRIGGER_EMPTY {{OBJ_CLASS(orte_gpr_trigger_t),0}, NULL, ORTE_GPR_TRIGGER_ID_MAX, 0, 0, NULL, 0, NULL}
#if defined(c_plusplus) || defined(__cplusplus)

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше