1
1

committing the header file fixes for protection against C++ name mangling. This is a hge commit. Please make sure that your files are protected right. There is some redundan protection in that the protection has been added right at teh beginning and at teh end ion some cases even thught typedefs are not requred to be protected. But this was done in order to have teh minimal change to the code base

This commit was SVN r3246.
Этот коммит содержится в:
Prabhanjan Kambadur 2004-10-20 22:31:03 +00:00
родитель 9c6ade2245
Коммит dac14aaf94
136 изменённых файлов: 665 добавлений и 237 удалений

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

@ -28,6 +28,9 @@
#define MPIO_Wait MPI_Wait
#endif
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* Typedefs
*/
@ -57,9 +60,6 @@ typedef struct ompi_status_public_t ompi_status_public_t;
/*
* User typedefs
*/
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
typedef int (MPI_Copy_function)(MPI_Comm, int, void *,
void *, void *, int *);
typedef int (MPI_Delete_function)(MPI_Comm, int, void *, void *);
@ -86,9 +86,6 @@ extern "C" {
typedef int (MPI_Grequest_query_function)(void *, MPI_Status *);
typedef int (MPI_Grequest_free_function)(void *);
typedef int (MPI_Grequest_cancel_function)(void *, int);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
* Miscellaneous constants
@ -340,9 +337,6 @@ enum {
#define MPI_WIN_DUP_FN OMPI_C_MPI_WIN_DUP_FN
#endif
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
int OMPI_C_MPI_TYPE_NULL_DELETE_FN( MPI_Datatype datatype, int type_keyval,
void* attribute_val_out, void* flag );
int OMPI_C_MPI_TYPE_NULL_COPY_FN( MPI_Datatype datatype, int type_keyval,
@ -377,9 +371,6 @@ int OMPI_C_MPI_WIN_DUP_FN( MPI_Win window, int win_keyval, void* extra_state,
void* attribute_val_in, void* attribute_val_out,
int* flag );
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
* External variables
@ -519,9 +510,6 @@ extern MPI_Fint *MPI_F_STATUSES_IGNORE;
#define MPI_ERRORS_RETURN (&ompi_mpi_errors_return)
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* MPI API

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

@ -130,7 +130,7 @@ typedef struct {
#include <stdlib.h>
#endif
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
@ -150,7 +150,7 @@ extern "C" {
# define vsnprintf ompi_vsnprintf
#endif
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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

@ -29,6 +29,9 @@
#define OMPI_KEYVAL_PREDEFINED 1
#define OMPI_KEYVAL_F77 2
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
enum ompi_attribute_type_t{
COMM_ATTR = 1, /**< The attribute belongs to a comm object. Starts
with 1 so that we can have it initialized to 0
@ -92,9 +95,6 @@ typedef struct ompi_attrkey_item_t ompi_attrkey_item_t;
/* Functions */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Convenient way to initialize the attribute hash table per MPI-Object

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

@ -24,6 +24,11 @@
#include "include/types.h"
#include "class/ompi_object.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t ompi_bitmap_t_class;
struct ompi_bitmap_t {
ompi_object_t super; /**< Subclass of ompi_object_t */
unsigned char *bitmap; /**< The actual bitmap array of characters */
@ -39,11 +44,6 @@ typedef struct ompi_bitmap_t ompi_bitmap_t;
OBJ_CLASS_DECLARATION(ompi_bitmap_t);
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Initializes the bitmap and sets its size. This must be called
* before the bitmap can be actually used

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

@ -12,6 +12,9 @@
#include "include/constants.h"
#include "mca/mpool/mpool.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t ompi_free_list_t_class;
struct mca_mem_pool_t;
@ -138,6 +141,8 @@ int ompi_free_list_grow(ompi_free_list_t* flist, size_t num_elements);
} \
OMPI_THREAD_UNLOCK(&(fl)->fl_lock); \
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -18,6 +18,9 @@
#include "include/types.h"
#include "class/ompi_list.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t ompi_hash_table_t_class;
@ -35,9 +38,6 @@ struct ompi_hash_table_t
typedef struct ompi_hash_table_t ompi_hash_table_t;
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Initializes the table size, must be called before using

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

@ -31,6 +31,9 @@
#include <stdlib.h>
#include "class/ompi_object.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* \internal
*
@ -499,9 +502,6 @@ static inline void ompi_list_insert_pos(ompi_list_t *list, ompi_list_item_t *pos
list->ompi_list_length++;
}
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Add an item to the list at a specific index location in the list.
*

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

@ -116,7 +116,7 @@
*/
#undef BEGIN_C_DECLS
#undef END_C_DECLS
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
# define BEGIN_C_DECLS extern "C" {
# define END_C_DECLS }
#else

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

@ -8,6 +8,9 @@
#include "threads/mutex.h"
#include "class/ompi_object.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* typedefs
*/
@ -106,5 +109,7 @@ static inline size_t ompi_pointer_array_get_size(ompi_pointer_array_t *array)
*/
int ompi_pointer_array_test_and_set_item (ompi_pointer_array_t *table, size_t index,
void *value);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* OMPI_POINTER_ARRAY_H */

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

@ -16,6 +16,9 @@
#include "class/ompi_object.h"
#include "class/ompi_free_list.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* Data structures and datatypes
*/
@ -181,6 +184,8 @@ int ompi_rb_tree_traverse(ompi_rb_tree_t *tree,
*/
int ompi_rb_tree_size(ompi_rb_tree_t *tree);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* OMPI_RB_TREE_H */

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

@ -14,6 +14,9 @@
#include "util/output.h"
#endif
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* @file Array of elements maintained by value.
*/
@ -32,9 +35,6 @@ struct ompi_value_array_t
typedef struct ompi_value_array_t ompi_value_array_t;
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Initialize the array to hold items by value. This routine must

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

@ -22,6 +22,9 @@
#define OMPI_COLL_TAG_ALLREDUCE 31000
#define OMPI_MAX_COMM 32768
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* These functions make sure, that we determine the global result over
* an intra communicators (simple), an inter-communicator and a
@ -670,3 +673,6 @@ static int ompi_comm_allreduce_intra_oob (int *inbuf, int *outbuf,
return (rc);
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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

@ -55,6 +55,9 @@ extern ompi_class_t ompi_communicator_t_class;
#define OMPI_COMM_CID_INTRA_BRIDGE 0x00000080
#define OMPI_COMM_CID_INTRA_OOB 0x00000100
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_pointer_array_t ompi_mpi_communicators;
struct ompi_communicator_t {
@ -195,9 +198,6 @@ static inline bool ompi_comm_peer_invalid(ompi_communicator_t* comm, int peer_id
return false;
}
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Initialise MPI_COMM_WORLD and MPI_COMM_SELF

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

@ -27,7 +27,9 @@
#include "class/ompi_hash_table.h"
#include "class/ompi_pointer_array.h"
#include "mpi.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_pointer_array_t *ompi_datatype_f_to_c_table;
/* if there are more basic datatypes than the number of bytes in the int type
@ -243,6 +245,8 @@ void* allocate_memory_for_ddt( unsigned int* pSize )
if( *pSize == 0 ) return NULL;
return malloc( *pSize );
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* DATATYPE_H_HAS_BEEN_INCLUDED */

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

@ -79,6 +79,9 @@
#define DT_INCREASE_STACK 32
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
struct __dt_stack {
int32_t index; /**< index in the element description */
int32_t count; /**< number of times we still have to do it */
@ -278,5 +281,7 @@ int ompi_convertor_create_stack_at_begining( ompi_convertor_t* pConvertor, int*
pConvertor->bConverted = 0;
return OMPI_SUCCESS;
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* DATATYPE_INTERNAL_H_HAS_BEEN_INCLUDED */

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

@ -12,6 +12,9 @@
#include "class/ompi_object.h"
#include "class/ompi_pointer_array.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Back-end type for MPI error class. It is close
@ -37,9 +40,6 @@ static inline bool ompi_errclass_is_invalid(int errclass)
}
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Initialize the error classes

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

@ -14,6 +14,9 @@
#include "class/ompi_pointer_array.h"
#define OMPI_MAX_ERROR_STRING 64
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Back-end type for MPI error codes
*/
@ -49,9 +52,6 @@ static inline int ompi_errcode_get_mpi_code(int errcode)
}
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Initialize the error codes

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

@ -12,6 +12,9 @@
#include "class/ompi_object.h"
#include "class/ompi_pointer_array.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Back-end type for MPI error codes
@ -59,9 +62,6 @@ static inline char* ompi_mpi_errcode_get_string (int errcode)
return err->errstring;
}
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Initialize the error codes

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

@ -15,6 +15,9 @@
#include "errhandler/errhandler_predefined.h"
#include "errhandler/errcode-internal.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* These must correspond to the fortran handle indices
*/
@ -183,9 +186,6 @@ extern ompi_pointer_array_t *ompi_errhandler_f_to_c_table;
}
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Initialize the error handler interface.
@ -269,9 +269,6 @@ extern "C" {
*/
ompi_errhandler_t *ompi_errhandler_create(ompi_errhandler_type_t object_type,
ompi_errhandler_generic_handler_fn_t *func);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/**
@ -293,5 +290,8 @@ static inline bool ompi_errhandler_is_intrinsic(ompi_errhandler_t *errhandler)
return false;
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* OMPI_ERRHANDLER_H */

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

@ -29,7 +29,7 @@
#ifndef _EVENT_H_
#define _EVENT_H_
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
@ -266,7 +266,7 @@ ompi_event_pending(struct ompi_event *ev, short event, struct timeval *tv)
#define ompi_event_initialized(ev) ((ev)->ev_flags & OMPI_EVLIST_INIT)
#endif
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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

@ -19,6 +19,9 @@
#define OMPI_FILE_ISCLOSED 0x00000001
#define OMPI_FILE_HIDDEN 0x00000002
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Back-end structure for MPI_File
@ -85,9 +88,6 @@ extern ompi_pointer_array_t ompi_file_f_to_c_table;
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Initialize MPI_File handling.
*
@ -159,9 +159,6 @@ extern "C" {
*/
int ompi_file_finalize(void);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/**
@ -182,4 +179,7 @@ static inline bool ompi_file_invalid(ompi_file_t *file)
0 != (file->f_flags & OMPI_FILE_ISCLOSED));
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* OMPI_FILE_H */

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

@ -15,7 +15,9 @@
#include "mpi.h"
#include "proc/proc.h"
#include "class/ompi_pointer_array.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Group structure
*/
@ -130,5 +132,7 @@ int ompi_group_translate_ranks ( ompi_group_t *group1,
ompi_group_t *group2,
int *ranks2);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* OMPI_GROUP_H */

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

@ -117,9 +117,6 @@ extern "C" {
* checkout).
*/
void ompi_free(void *addr, char *file, int line);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
extern int ompi_malloc_debug_level;
extern int ompi_malloc_output;
@ -139,4 +136,7 @@ static inline void ompi_malloc_debug(int level)
ompi_malloc_debug_level = level;
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* OMPI_MALLOC_H */

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

@ -9,6 +9,9 @@
#define MCA_ALLOCATOR_H
#include "mca/mca.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/* Here so that we can use mca_allocator_base_module_t in the function typedefs */
struct mca_allocator_base_module_t;
@ -121,6 +124,8 @@ typedef struct mca_allocator_base_component_1_0_0_t mca_allocator_base_component
* The output integer used for the mca base
*/
extern int mca_allocator_base_output;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_ALLOCATOR_H */

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

@ -13,6 +13,9 @@
#include "mca/mca.h"
#include "mca/allocator/allocator.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Structure which describes a selected module.
*/
@ -39,15 +42,9 @@ OBJ_CLASS_DECLARATION(mca_mpool_base_selected_module_t);
* Global functions for MCA: overall allocator open and close
*/
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
int mca_allocator_base_open(void);
int mca_allocator_base_close(void);
mca_allocator_base_component_t* mca_allocator_component_lookup(const char* name);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
@ -57,5 +54,8 @@ extern "C" {
* The list of all the selected components.
*/
extern ompi_list_t mca_allocator_base_components;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_ALLOCATOR_BASE_H */

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

@ -14,6 +14,9 @@
#include "threads/mutex.h"
#include "class/ompi_object.h"
#include "mca/allocator/allocator.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Structure for the header of each memory chunk
@ -79,9 +82,6 @@ struct mca_allocator_bucket_t {
*/
typedef struct mca_allocator_bucket_t mca_allocator_bucket_t;
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Initializes the mca_allocator_bucket_options_t data structure for the passed
* parameters.

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

@ -17,6 +17,9 @@
#include "mca/base/mca_base_module_exchange.h"
#include "mca/base/mca_base_msgbuf.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* Structure for making plain lists of components
@ -54,9 +57,6 @@ extern int mca_base_param_component_path;
/*
* Public functions
*/
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* First function called in the MCA.

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

@ -184,9 +184,6 @@ extern "C" {
* It must be the last function invoked on the coll MCA framework.
*/
int mca_coll_base_close(void);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
@ -256,4 +253,7 @@ extern ompi_list_t mca_coll_base_components_available;
*/
extern const mca_coll_base_component_1_0_0_t *mca_coll_base_basic_component;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_BASE_COLL_H */

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

@ -13,6 +13,9 @@
#include "request/request.h"
#include "mca/pml/pml.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* Globally exported variable
@ -26,9 +29,6 @@ extern int mca_coll_basic_priority_param;
* coll API functions
*/
#ifdef __cplusplus
extern "C" {
#endif
/* API functions */
@ -220,9 +220,6 @@ extern "C" {
struct ompi_datatype_t *rdtype, int root,
struct ompi_communicator_t *comm);
#ifdef __cplusplus
}
#endif
/* Utility functions */
@ -243,4 +240,7 @@ struct mca_coll_base_comm_t {
int mccb_num_reqs;
};
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_COLL_BASIC_EXPORT_H */

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

@ -13,6 +13,9 @@
#include "request/request.h"
#include "mca/pml/pml.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* Globally exported variable
@ -28,9 +31,6 @@ extern int mca_coll_demo_verbose;
* coll API functions
*/
#ifdef __cplusplus
extern "C" {
#endif
/* API functions */
@ -200,9 +200,6 @@ extern "C" {
struct ompi_datatype_t *rdtype, int root,
struct ompi_communicator_t *comm);
#ifdef __cplusplus
}
#endif
/* Utility functions */
@ -223,4 +220,7 @@ struct mca_coll_base_comm_t {
int mccb_num_reqs;
};
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_COLL_DEMO_EXPORT_H */

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

@ -11,6 +11,9 @@
#include "mca/mca.h"
#include "mca/coll/coll.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
#define PUB(foo) mca_coll_sm##foo
@ -35,9 +38,6 @@ typedef struct mca_coll_base_module_comm_t {
extern const mca_coll_base_component_1_0_0_t mca_coll_sm_component;
#ifdef __cplusplus
extern "C" {
#endif
/*
* coll API functions
@ -87,7 +87,7 @@ extern "C" {
/* VPS: Any other module utility function prototypes can go in here */
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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

@ -4,7 +4,9 @@
#include "class/ompi_object.h"
#include "class/ompi_list.h"
#include "include/sys/atomic.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
struct mca_common_sm_file_header_t {
/* lock to control atomic access */
ompi_lock_t seg_lock;
@ -67,6 +69,9 @@ void mca_common_sm_mmap_free(void* addr);
extern mca_common_sm_mmap_t *mca_common_sm_mmap;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -176,9 +176,6 @@ extern "C" {
* It must be the last function invoked on the io MCA framework.
*/
int mca_io_base_close(void);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
@ -219,4 +216,7 @@ extern bool mca_io_base_components_available_valid;
*/
extern ompi_list_t mca_io_base_components_available;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_BASE_IO_H */

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

@ -14,6 +14,9 @@
#include "mca/io/base/io_base_request.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* global variables, instantiated in module.c
*/
@ -267,5 +270,7 @@ int mca_io_romio_test (mca_io_base_request_t * request,
ompi_status_public_t * status);
int mca_io_romio_wait (mca_io_base_request_t * request,
ompi_status_public_t * status);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_IO_ROMIO_H */

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

@ -28,14 +28,14 @@ extern "C" {
mca_llm_base_module_t **selected,
bool have_threads);
int mca_llm_base_close(void);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
* Globals
*/
extern int mca_llm_base_output;
extern ompi_list_t mca_llm_base_components_available;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_LLM_BASE_H */

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

@ -12,6 +12,9 @@
#include "mca/llm/llm.h"
#include "mca/ns/ns.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* Globally exported variable
*/
@ -20,9 +23,6 @@ extern const mca_llm_base_component_1_0_0_t mca_llm_hostfile_component;
/*
* llm API functions
*/
#ifdef __cplusplus
extern "C" {
#endif
int mca_llm_hostfile_component_open(void);
int mca_llm_hostfile_component_close(void);
@ -50,7 +50,7 @@ extern "C" {
};
typedef struct mca_llm_hostfile_module_t mca_llm_hostfile_module_t;
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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

@ -13,6 +13,9 @@
#include "mca/mca.h"
#include "mca/mpool/mpool.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
struct mca_mpool_base_selected_module_t {
ompi_list_item_t super;
@ -27,17 +30,11 @@ OBJ_CLASS_DECLARATION(mca_mpool_base_selected_module_t);
* Global functions for MCA: overall mpool open and close
*/
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
int mca_mpool_base_open(void);
int mca_mpool_base_init(bool *allow_multi_user_threads);
int mca_mpool_base_close(void);
mca_mpool_base_component_t* mca_mpool_component_lookup(const char* name);
mca_mpool_base_module_t* mca_mpool_module_lookup(const char* name);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
@ -47,4 +44,8 @@ extern int mca_mpool_base_output;
extern ompi_list_t mca_mpool_base_components;
extern ompi_list_t mca_mpool_base_modules;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_MEM_BASE_H */

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

@ -12,7 +12,9 @@
#include "event/event.h"
#include "mca/mpool/mpool.h"
#include "mca/allocator/allocator.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
struct mca_mpool_sm_component_t {
mca_mpool_base_component_t super;
@ -47,5 +49,8 @@ void* mca_mpool_sm_realloc(void* addr, size_t size);
void mca_mpool_sm_free(void *);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -82,9 +82,6 @@ extern "C" {
int ns_base_free_name(ompi_process_name_t* name);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
@ -101,4 +98,7 @@ extern mca_ns_base_component_t mca_ns_base_selected_component;
* external API functions will be documented in the mca/ns/ns.h file
*/
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -12,7 +12,9 @@
#include "include/constants.h"
#include "class/ompi_list.h"
#include "mca/ns/ns.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* Module open / close
*/
@ -43,5 +45,8 @@ mca_ns_base_jobid_t ns_proxy_create_jobid(void);
mca_ns_base_vpid_t ns_proxy_reserve_range(mca_ns_base_jobid_t job, mca_ns_base_vpid_t range);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -13,7 +13,9 @@
#include "class/ompi_list.h"
#include "mca/oob/oob.h"
#include "mca/ns/ns.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* list class for tracking vpids/jobid
* This structure is used to create a linked list of jobid-max vpid pairs. Basically, we
@ -87,4 +89,7 @@ int ns_replica_compare(ompi_ns_cmp_bitmask_t fields,
const ompi_process_name_t* name1,
const ompi_process_name_t* name2);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -11,6 +11,9 @@
#include "mca/oob/base/base.h"
#include "include/types.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* Module open / close
*/
@ -117,5 +120,8 @@ int mca_oob_cofs_recv_nb(
extern char mca_oob_cofs_comm_loc[OMPI_PATH_MAX]; /* location for file drop-off */
extern uint64_t mca_oob_cofs_serial;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -15,6 +15,9 @@
#include "mca/mca.h"
#include "mca/oob/base/base.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
struct mca_oob_1_0_0_t;
/**
@ -247,16 +250,10 @@ OBJ_CLASS_DECLARATION(mca_oob_base_info_t);
/*
* Global functions for MCA overall collective open and close
*/
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
int mca_oob_base_open(void);
int mca_oob_base_init(bool *allow_multi_user_threads, bool *have_hidden_threads);
int mca_oob_base_module_init(void);
int mca_oob_base_close(void);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
@ -268,4 +265,7 @@ extern char* mca_oob_base_exclude;
extern ompi_list_t mca_oob_base_components;
extern ompi_list_t mca_oob_base_modules;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -15,7 +15,9 @@
#include "class/ompi_object.h"
#include "util/bufpack.h"
#include "mca/ns/ns.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Address info published to registry
*/
@ -56,5 +58,8 @@ int mca_oob_tcp_addr_insert(mca_oob_tcp_addr_t*, const struct sockaddr_in*);
int mca_oob_tcp_addr_get_next(mca_oob_tcp_addr_t*, struct sockaddr_in*);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -16,6 +16,9 @@
#include <errno.h>
#include "util/output.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
struct mca_oob_tcp_peer_t;
#define MCA_OOB_TCP_IOV_MAX 16
@ -193,5 +196,8 @@ static inline void mca_oob_tcp_msg_iov_return(mca_oob_tcp_msg_t* msg, struct iov
free(iov);
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* _MCA_OOB_TCP_MESSAGE_H_ */

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

@ -60,9 +60,6 @@ extern "C" {
*/
char *mca_pcm_base_get_unique_id(void);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
@ -71,4 +68,7 @@ extern "C" {
extern int mca_pcm_base_output;
extern ompi_list_t mca_pcm_base_components_available;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_PCM_BASE_H */

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

@ -13,7 +13,7 @@
#include "mca/ns/ns.h"
#include "runtime/runtime_types.h"
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
@ -55,7 +55,7 @@ extern "C" {
typedef struct mca_pcm_base_job_item_t mca_pcm_base_job_item_t;
OBJ_CLASS_DECLARATION(mca_pcm_base_job_item_t);
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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

@ -20,7 +20,7 @@
#ifndef MCA_PCM_BPROC_H_
#define MCA_PCM_BPROC_H_
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
@ -86,13 +86,13 @@ extern "C" {
typedef struct mca_pcm_bproc_job_item_t mca_pcm_bproc_job_item_t;
OBJ_CLASS_DECLARATION(mca_pcm_bproc_job_item_t);
#ifdef __cplusplus
}
#endif
/*
* Module variables
*/
extern int mca_pcm_bproc_output;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_PCM_BPROCx_H_ */

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

@ -6,7 +6,9 @@
#include "ompi_config.h"
#include "mca/pcm/pcm.h"
#include "runtime/runtime_types.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* Module open / close
*/
@ -80,3 +82,6 @@ int mca_pcm_ompid_spawn_procs(
mca_ns_base_jobid_t jobid,
ompi_list_t *schedule_list);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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

@ -20,7 +20,7 @@
#ifndef MCA_PCM_RMS_H_
#define MCA_PCM_RMS_H_
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
@ -63,7 +63,7 @@ extern "C" {
};
typedef struct mca_pcm_rms_module_t mca_pcm_rms_module_t;
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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

@ -15,7 +15,7 @@
#ifndef MCA_PCM_RSH_H_
#define MCA_PCM_RSH_H_
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
@ -65,7 +65,7 @@ extern "C" {
};
typedef struct mca_pcm_rsh_module_t mca_pcm_rsh_module_t;
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif

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

@ -20,7 +20,7 @@
#ifndef MCA_PCM_SLURM_H_
#define MCA_PCM_SLURM_H_
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
@ -54,13 +54,13 @@ extern "C" {
mca_ns_base_jobid_t jobid,
ompi_list_t *nodelist);
#ifdef __cplusplus
}
#endif
/*
* Module variables
*/
extern int mca_pcm_slurm_output;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_PCM_SLURM_H_ */

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

@ -20,7 +20,7 @@
#ifndef MCA_PCM_WMI_H_
#define MCA_PCM_WMI_H_
#ifdef __cplusplus
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
@ -86,14 +86,14 @@ extern "C" {
typedef struct mca_pcm_wmi_job_item_t mca_pcm_wmi_job_item_t;
OBJ_CLASS_DECLARATION(mca_pcm_wmi_job_item_t);
#ifdef __cplusplus
}
#endif
/*
* Module variables
*/
extern int mca_pcm_wmi_output;
extern int mca_pcm_wmi_use_ns;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_PCM_WMI_H_ */

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

@ -23,9 +23,6 @@ extern "C" {
int mca_pcmclient_base_select(bool *allow_multi_user_threads,
bool *have_hidden_threads);
int mca_pcmclient_base_close(void);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
@ -36,4 +33,7 @@ extern ompi_list_t mca_pcmclient_base_components_available;
extern mca_pcmclient_base_component_t mca_pcmclient_base_selected_component;
extern mca_pcmclient_base_module_t mca_pcmclient;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_PCMCLIENT_BASE_H */

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

@ -23,9 +23,6 @@ extern "C" {
bool *allow_multi_user_threads,
bool *have_hidden_threads);
int mca_pml_base_close(void);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
@ -36,4 +33,7 @@ extern ompi_list_t mca_pml_base_components_available;
extern mca_pml_base_component_t mca_pml_base_selected_component;
extern mca_pml_base_module_t mca_pml;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_PML_BASE_H */

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

@ -8,7 +8,9 @@
#define MCA_PML_BASE_RECV_REQUEST_H
#include "mca/pml/base/pml_base_request.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t mca_pml_base_recv_request_t_class;
/**
@ -64,5 +66,8 @@ typedef struct mca_pml_base_recv_request_t mca_pml_base_recv_request_t;
\
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -13,6 +13,9 @@
#include "communicator/communicator.h"
#include "mca/ptl/ptl.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t mca_pml_base_request_t_class;
/**
@ -48,5 +51,8 @@ struct mca_pml_base_request_t {
typedef struct mca_pml_base_request_t mca_pml_base_request_t;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -11,6 +11,9 @@
#include "datatype/datatype.h"
#include "mca/pml/base/pml_base_request.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t mca_pml_base_send_request_t_class;
@ -120,5 +123,8 @@ static inline bool mca_pml_base_send_request_matched(
return (NULL != request->req_peer_match.pval);
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -58,6 +58,9 @@
#include "mca/mca.h"
#include "mpi.h" /* needed for MPI_ANY_TAG */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* PML component types
@ -483,4 +486,7 @@ extern mca_pml_base_module_t mca_pml;
/* pml v1.0 */ \
"pml", 1, 0, 0
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_PML_H */

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

@ -9,6 +9,9 @@
#include "util/output.h"
#include "mca/ptl/ptl.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t mca_pml_teg_ptl_array_t_class;
@ -123,6 +126,9 @@ static inline mca_ptl_proc_t* mca_ptl_array_get_next(mca_ptl_array_t* array)
return ptl_proc;
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -21,6 +21,9 @@
#define MCA_PML_TEG_STATISTICS 0
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* TEG PML module
*/
@ -209,6 +212,9 @@ extern int mca_pml_teg_start(
ompi_request_t** requests
);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#define MCA_PML_TEG_FINI(request) \
{ \
mca_pml_base_request_t* pml_request = *(mca_pml_base_request_t**)(request); \

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

@ -13,6 +13,9 @@
#include "proc/proc.h"
#include "pml_ptl_array.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Structure associated w/ ompi_proc_t that contains data specific
* to the PML. Note that this name is not PML specific.
@ -85,5 +88,8 @@ static inline struct mca_ptl_base_peer_t* mca_pml_teg_proc_lookup_remote_peer(
return NULL;
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -3,6 +3,9 @@
#include "mca/ptl/ptl.h"
#include "threads/condition.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
struct mca_pml_base_ptl_t {
@ -16,6 +19,9 @@ typedef struct mca_pml_base_ptl_t mca_pml_base_ptl_t;
OBJ_CLASS_DECLARATION(mca_pml_base_ptl_t);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -12,6 +12,9 @@
#include "mca/pml/base/pml_base_recvreq.h"
#include "mca/ptl/base/ptl_base_recvfrag.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
typedef mca_pml_base_recv_request_t mca_pml_teg_recv_request_t;
OBJ_CLASS_DECLARATION(mca_pml_teg_recv_request_t);
@ -98,5 +101,8 @@ void mca_pml_teg_recv_request_progress(
size_t bytes_delivered
);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -14,6 +14,9 @@
#include "pml_teg_proc.h"
#include "pml_teg_ptl.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
typedef mca_pml_base_send_request_t mca_pml_teg_send_request_t;
OBJ_CLASS_DECLARATION(mca_pml_teg_send_request_t);
@ -167,5 +170,8 @@ void mca_pml_teg_send_request_progress(
size_t bytes_sent
);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -13,6 +13,9 @@
#include "mca/mca.h"
#include "mca/ptl/ptl.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
struct mca_ptl_base_selected_module_t {
ompi_list_item_t super;
@ -27,16 +30,10 @@ typedef struct mca_ptl_base_selected_module_t mca_ptl_base_selected_module_t;
* Global functions for MCA: overall PTL open and close
*/
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
int mca_ptl_base_open(void);
int mca_ptl_base_select(bool *allow_multi_user_threads,
bool *have_hidden_threads);
int mca_ptl_base_close(void);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
@ -48,4 +45,7 @@ extern char* mca_ptl_base_exclude;
extern ompi_list_t mca_ptl_base_components_opened;
extern ompi_list_t mca_ptl_base_modules_initialized;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_PTL_BASE_H */

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

@ -11,7 +11,9 @@
#include "threads/condition.h"
#include "mca/ptl/ptl.h"
#include "class/ompi_list.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t mca_pml_ptl_comm_t_class;
/**
@ -58,5 +60,8 @@ static inline mca_ptl_sequence_t mca_pml_ptl_comm_send_sequence(mca_pml_ptl_comm
return sequence;
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -12,6 +12,9 @@
#include "datatype/datatype.h"
#include "mca/ptl/base/ptl_base_header.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t mca_ptl_base_frag_t_class;
/**
@ -28,6 +31,9 @@ struct mca_ptl_base_frag_t {
};
typedef struct mca_ptl_base_frag_t mca_ptl_base_frag_t;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -12,6 +12,9 @@
#include "mca/ptl/base/ptl_base_fragment.h"
#include "mca/ptl/base/ptl_base_match.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t mca_ptl_base_recv_frag_t_class;
/**
@ -24,6 +27,9 @@ struct mca_ptl_base_recv_frag_t {
};
typedef struct mca_ptl_base_recv_frag_t mca_ptl_base_recv_frag_t;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -10,6 +10,9 @@
#include "mca/ptl/ptl.h"
#include "mca/ptl/base/ptl_base_fragment.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t mca_ptl_base_send_frag_t_class;
/**
@ -21,6 +24,9 @@ struct mca_ptl_base_send_frag_t {
};
typedef struct mca_ptl_base_send_frag_t mca_ptl_base_send_frag_t;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -18,6 +18,9 @@
#include "elan.h"
#include "init.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
struct mca_ptl_elan_state_t;
struct ompi_ptl_elan_queue_ctrl_t;
extern struct mca_ptl_elan_state_t mca_ptl_elan_global_state;
@ -274,4 +277,7 @@ extern void mca_ptl_elan_send_frag_return (struct mca_ptl_base_module_t *ptl,
struct mca_ptl_elan_send_frag_t
*frag);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -16,7 +16,9 @@
#include "mca/ptl/base/ptl_base_sendfrag.h"
#include "mca/ptl/base/ptl_base_recvfrag.h"
#include "ptl_elan.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
struct mca_ptl_elan_peer_t;
struct ompi_ptl_elan_base_desc_t;
@ -81,4 +83,7 @@ mca_ptl_elan_recv_frag_done (
mca_ptl_base_header_t *header,
mca_ptl_elan_recv_frag_t* frag,
mca_pml_base_recv_request_t *request);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -16,6 +16,9 @@
#include "mca/ptl/ptl.h"
#include "ptl_elan_frag.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* An abstraction that represents a connection to a peer process.
*/
@ -36,5 +39,8 @@ typedef struct mca_ptl_elan_peer_t mca_ptl_elan_peer_t;
OBJ_CLASS_DECLARATION(mca_ptl_elan_peer_t);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -14,7 +14,9 @@
#include "proc/proc.h"
#include "ptl_elan.h"
#include "ptl_elan_peer.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t mca_ptl_elan_proc_t_class;
/**
@ -49,4 +51,7 @@ int mca_ptl_elan_proc_remove(mca_ptl_elan_proc_t *, mca_ptl_elan_peer_t *);
bool mca_ptl_elan_proc_accept(mca_ptl_elan_proc_t *,
struct sockaddr_in *, int sd);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -28,6 +28,9 @@
#define GM_RECV_BUF_SIZE 16384
#define NUM_RECV_FRAGS 256
#define MCA_PTL_GM_FRAG_CACHED
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* GM PTL component
@ -226,4 +229,7 @@ extern void mca_ptl_gm_matched (struct mca_ptl_base_module_t *ptl,
extern int mca_ptl_gm_finalize (struct mca_ptl_base_module_t *ptl);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -21,6 +21,9 @@
#include "ptl_gm_proc.h"
#include "ptl_gm_addr.h"
#include "ptl_gm.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* An abstraction that represents a connection to a peer process.
*/
@ -43,4 +46,7 @@ typedef struct mca_ptl_gm_peer_t mca_ptl_gm_peer_t;
OBJ_CLASS_DECLARATION(mca_ptl_gm_peer_t);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -15,6 +15,9 @@
#include "class/ompi_object.h"
#include "proc/proc.h"
#include "ptl_gm.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t mca_ptl_gm_proc_t_class;
@ -35,4 +38,7 @@ mca_ptl_gm_proc_t *mca_ptl_gm_proc_create (mca_ptl_gm_module_t * ptl,
ompi_proc_t * ompi_proc);
mca_ptl_gm_proc_t *mca_ptl_gm_proc_lookup (void *guid, size_t size);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -17,6 +17,9 @@
#include "mca/pml/base/pml_base_sendreq.h"
#include "ptl_gm_sendfrag.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OBJ_CLASS_DECLARATION (mca_ptl_gm_send_request_t);
@ -28,4 +31,7 @@ struct mca_ptl_gm_send_request_t {
};
typedef struct mca_ptl_gm_send_request_t mca_ptl_gm_send_request_t;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -26,6 +26,9 @@
#define ACK 2
#define PUT 3
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OBJ_CLASS_DECLARATION (mca_ptl_gm_send_frag_t);
OBJ_CLASS_DECLARATION (mca_ptl_gm_recv_frag_t);
@ -112,4 +115,7 @@ int mca_ptl_gm_send_frag_done(
mca_ptl_gm_recv_frag_t *
mca_ptl_gm_alloc_recv_frag(struct mca_ptl_base_module_t *ptl);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -29,6 +29,9 @@
#include "ptl_ib_sendreq.h"
#include "ptl_ib_recvfrag.h"
#include "ptl_ib_sendfrag.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* IB PTL component.
@ -314,4 +317,7 @@ extern void mca_ptl_ib_send_frag_return(
struct mca_ptl_ib_send_frag_t*
);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -9,6 +9,9 @@
#include "ptl_ib_sendfrag.h"
#include "ptl_ib_priv.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OBJ_CLASS_DECLARATION(mca_ptl_ib_peer_t);
/**
@ -96,4 +99,7 @@ void mca_ptl_ib_progress_send_frags(mca_ptl_ib_peer_t*);
peer_ptr->peer_conn->rres->lid); \
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -9,6 +9,9 @@
#include "ptl_ib_addr.h"
#include "ptl_ib_peer.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OBJ_CLASS_DECLARATION(mca_ptl_ib_proc_t);
/**
@ -44,4 +47,7 @@ typedef struct mca_ptl_ib_proc_t mca_ptl_ib_proc_t;
mca_ptl_ib_proc_t* mca_ptl_ib_proc_create(ompi_proc_t* ompi_proc);
int mca_ptl_ib_proc_insert(mca_ptl_ib_proc_t*, mca_ptl_base_peer_t*);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -6,6 +6,9 @@
#define MCA_PTL_IB_UNEX_BUF_SIZE (4096)
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OBJ_CLASS_DECLARATION(mca_ptl_ib_recv_frag_t);
/**
@ -24,4 +27,7 @@ void mca_ptl_ib_recv_frag_done (mca_ptl_base_header_t*,
mca_ptl_base_recv_frag_t*, mca_pml_base_recv_request_t*);
void mca_ptl_ib_process_recv(mca_ptl_base_module_t* , void*);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -7,6 +7,9 @@
#include "ptl_ib_priv.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OBJ_CLASS_DECLARATION(mca_ptl_ib_send_frag_t);
/**
@ -68,4 +71,7 @@ int mca_ptl_ib_put_frag_init(mca_ptl_ib_send_frag_t *sendfrag,
struct mca_pml_base_send_request_t *req,
size_t offset, size_t *size, int flags);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -8,6 +8,9 @@
#include "mca/pml/base/pml_base_sendreq.h"
#include "ptl_ib_sendfrag.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OBJ_CLASS_DECLARATION(mca_ptl_ib_send_request_t);
/**
@ -27,4 +30,7 @@ struct mca_ptl_ib_send_request_t {
};
typedef struct mca_ptl_ib_send_request_t mca_ptl_ib_send_request_t;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -14,6 +14,9 @@
#include "mca/pml/base/pml_base_recvreq.h"
#include "mca/ptl/base/ptl_base_recvfrag.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
typedef struct mca_ptl_prof mca_ptl_prof_t;
typedef struct mca_ptl_prof_module_1_0_0 mca_ptl_prof_module_1_0_0_t;
@ -38,5 +41,8 @@ struct mca_ptl_prof {
u_int32_t prof_complete_id;
};
OBJ_CLASS_DECLARATION(mca_ptl_prof_t);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* PTL_PROF_H_HAS_BEEN_INCLUDED */

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

@ -15,6 +15,9 @@
#include "mca/pml/base/pml_base_sendreq.h"
#include "mca/pml/base/pml_base_recvreq.h"
#include "mca/ptl/base/ptl_base_recvfrag.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* SELF PTL component.
@ -82,5 +85,8 @@ int mca_ptl_self_send( struct mca_ptl_base_module_t* ptl, struct mca_ptl_base_p
size_t offset, size_t size, int flags );
void mca_ptl_self_matched( mca_ptl_base_module_t* ptl, mca_ptl_base_recv_frag_t* frag );
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* PTL_SELF_H_HAS_BEEN_INCLUDED */

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

@ -17,6 +17,9 @@
#include "mca/mpool/mpool.h"
#include "mca/common/sm/common_sm_mmap.h"
#include "class/ompi_fifo.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/*
* Shared Memory resource managment
@ -271,5 +274,8 @@ typedef struct mca_ptl_sm_exchange{
char host_name[MCA_PTL_SM_MAX_HOSTNAME_LEN];
}mca_ptl_sm_exchange_t;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -16,6 +16,9 @@
#include "ptl_sm.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OBJ_CLASS_DECLARATION(mca_ptl_sm_frag_t);
OBJ_CLASS_DECLARATION(mca_ptl_sm_second_frag_t);
@ -44,6 +47,9 @@ typedef struct mca_ptl_sm_frag_t mca_ptl_sm_frag_t;
* only for the second and beyond fragments.
*/
typedef struct mca_ptl_sm_frag_t mca_ptl_sm_second_frag_t;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -15,6 +15,9 @@
#include "mca/ptl/base/ptl_base_recvfrag.h"
#include "ptl_sm.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OBJ_CLASS_DECLARATION(mca_ptl_sm_recv_frag_t);
@ -27,5 +30,8 @@ struct mca_ptl_sm_recv_frag_t {
};
typedef struct mca_ptl_sm_recv_frag_t mca_ptl_sm_recv_frag_t;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -13,6 +13,9 @@
#include "mca/pml/base/pml_base_sendreq.h"
#include "ptl_sm_frag.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
OBJ_CLASS_DECLARATION(mca_ptl_sm_send_request_t);
@ -41,5 +44,8 @@ typedef struct mca_ptl_sm_send_request_t mca_ptl_sm_send_request_t;
int mca_ptl_sm_send_request_init(struct mca_ptl_base_module_t* ptl,
struct mca_pml_base_send_request_t* request);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -16,6 +16,9 @@
#include "mca/ptl/ptl.h"
#define MCA_PTL_TCP_STATISTICS 0
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* TCP PTL module.
@ -246,5 +249,8 @@ extern void mca_ptl_tcp_send_frag_return(
struct mca_ptl_tcp_send_frag_t*
);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -14,6 +14,9 @@
#include "event/event.h"
#include "mca/pml/pml.h"
#include "mca/ptl/ptl.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* State of TCP peer connection.
@ -63,5 +66,8 @@ int mca_ptl_tcp_peer_send(mca_ptl_base_peer_t*, struct mca_ptl_tcp_send_frag_t*
bool mca_ptl_tcp_peer_accept(mca_ptl_base_peer_t*, struct sockaddr_in*, int);
void mca_ptl_tcp_peer_shutdown(mca_ptl_base_peer_t*);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -15,6 +15,9 @@
#include "proc/proc.h"
#include "ptl_tcp.h"
#include "ptl_tcp_peer.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t mca_ptl_tcp_proc_t_class;
@ -55,6 +58,8 @@ static inline mca_ptl_tcp_proc_t* mca_ptl_tcp_proc_local(void)
int mca_ptl_tcp_proc_insert(mca_ptl_tcp_proc_t*, struct mca_ptl_base_peer_t*);
int mca_ptl_tcp_proc_remove(mca_ptl_tcp_proc_t*, struct mca_ptl_base_peer_t*);
bool mca_ptl_tcp_proc_accept(mca_ptl_tcp_proc_t*, struct sockaddr_in*, int sd);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -17,7 +17,9 @@
#include "mca/ptl/base/ptl_base_recvfrag.h"
#include "ptl_tcp_peer.h"
#include "ptl_tcp.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t mca_ptl_tcp_recv_frag_t_class;
/**
@ -154,6 +156,7 @@ static inline void mca_ptl_tcp_recv_frag_progress(mca_ptl_tcp_recv_frag_t* frag)
}
}
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -16,7 +16,9 @@
#include "mca/ptl/base/ptl_base_sendfrag.h"
#include "ptl_tcp.h"
#include "ptl_tcp_recvfrag.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t mca_ptl_tcp_send_frag_t_class;
struct mca_ptl_base_peer_t;
@ -135,6 +137,8 @@ static inline void mca_ptl_tcp_send_frag_init_ack(
ack->free_after = 0;
}
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -14,7 +14,9 @@
#include "ompi_config.h"
#include "mca/pml/base/pml_base_sendreq.h"
#include "ptl_tcp_sendfrag.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
extern ompi_class_t mca_ptl_tcp_send_request_t_class;
/**
@ -29,6 +31,8 @@ struct mca_ptl_tcp_send_request_t {
};
typedef struct mca_ptl_tcp_send_request_t mca_ptl_tcp_send_request_t;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -10,6 +10,9 @@
#include "mca/mca.h"
#include "mca/svc/svc.h"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
struct mca_svc_base_module_item_t {
@ -26,15 +29,9 @@ OBJ_CLASS_DECLARATION(mca_svc_base_module_item_t);
* Global functions for the SVC
*/
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
int mca_svc_base_open(void);
int mca_svc_base_init(void);
int mca_svc_base_close(void);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
/*
@ -44,4 +41,7 @@ extern int mca_svc_base_output;
extern ompi_list_t mca_svc_base_components;
extern ompi_list_t mca_svc_base_modules;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* MCA_SVC_BASE_H */

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

@ -15,6 +15,9 @@
#define OMPID_EXEC_CMD 1
#define OMPID_KILL_CMD 2
#define OMPID_PING_CMD 3
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
@ -39,5 +42,8 @@ typedef struct mca_svc_exec_component_t mca_svc_exec_component_t;
extern mca_svc_base_module_t mca_svc_exec_module;
extern mca_svc_exec_component_t mca_svc_exec_component;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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

@ -13,6 +13,9 @@
#define OMPI_NAME_ARGS(n) (n).cellid,(n).jobid,(n).vpid
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
/**
* Component open/close/init
*/
@ -40,5 +43,8 @@ extern mca_svc_base_module_t mca_svc_sched_module;
extern mca_svc_sched_component_t mca_svc_sched_component;
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif

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