📄 mpi.h.in
字号:
void* attribute_val_out, int* flag );OMPI_DECLSPEC int OMPI_C_MPI_NULL_DELETE_FN( MPI_Comm comm, int comm_keyval, void* attribute_val_out, void* extra_state );OMPI_DECLSPEC int OMPI_C_MPI_NULL_COPY_FN( MPI_Comm comm, int comm_keyval, void* extra_state, void* attribute_val_in, void* attribute_val_out, int* flag );OMPI_DECLSPEC int OMPI_C_MPI_DUP_FN( MPI_Comm comm, int comm_keyval, void* extra_state, void* attribute_val_in, void* attribute_val_out, int* flag );OMPI_DECLSPEC int OMPI_C_MPI_WIN_NULL_DELETE_FN( MPI_Win window, int win_keyval, void* attribute_val_out, void* extra_state );OMPI_DECLSPEC int OMPI_C_MPI_WIN_NULL_COPY_FN( MPI_Win window, int win_keyval, void* extra_state, void* attribute_val_in, void* attribute_val_out, int* flag );OMPI_DECLSPEC 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 );/* * External variables */OMPI_DECLSPEC extern struct ompi_communicator_t ompi_mpi_comm_world;OMPI_DECLSPEC extern struct ompi_communicator_t ompi_mpi_comm_self;OMPI_DECLSPEC extern struct ompi_communicator_t ompi_mpi_comm_null;OMPI_DECLSPEC extern struct ompi_group_t ompi_mpi_group_empty;OMPI_DECLSPEC extern struct ompi_group_t ompi_mpi_group_null;OMPI_DECLSPEC extern struct ompi_request_t ompi_request_null;OMPI_DECLSPEC extern struct ompi_op_t ompi_mpi_op_null;OMPI_DECLSPEC extern struct ompi_op_t ompi_mpi_op_max, ompi_mpi_op_min;OMPI_DECLSPEC extern struct ompi_op_t ompi_mpi_op_sum, ompi_mpi_op_prod;OMPI_DECLSPEC extern struct ompi_op_t ompi_mpi_op_land, ompi_mpi_op_band;OMPI_DECLSPEC extern struct ompi_op_t ompi_mpi_op_lor, ompi_mpi_op_bor;OMPI_DECLSPEC extern struct ompi_op_t ompi_mpi_op_lxor, ompi_mpi_op_bxor;OMPI_DECLSPEC extern struct ompi_op_t ompi_mpi_op_maxloc, ompi_mpi_op_minloc;OMPI_DECLSPEC extern struct ompi_op_t ompi_mpi_op_replace;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_char, ompi_mpi_byte;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_int, ompi_mpi_logic;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_short, ompi_mpi_long;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_float, ompi_mpi_double;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_long_double;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_cplex, ompi_mpi_packed;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_signed_char;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_unsigned_char;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_unsigned_short;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_unsigned, ompi_mpi_datatype_null;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_unsigned_long, ompi_mpi_ldblcplex;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_ub, ompi_mpi_lb;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_float_int, ompi_mpi_double_int;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_long_int, ompi_mpi_2int;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_short_int, ompi_mpi_dblcplex;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_integer, ompi_mpi_real;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_dblprec, ompi_mpi_character;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_2real, ompi_mpi_2dblprec;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_2integer, ompi_mpi_longdbl_int;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_wchar, ompi_mpi_long_long_int;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_unsigned_long_long;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_cxx_cplex, ompi_mpi_cxx_dblcplex;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_cxx_ldblcplex;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_cxx_bool;OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_2cplex, ompi_mpi_2dblcplex;/* other MPI2 datatypes */#if OMPI_HAVE_FORTRAN_INTEGER1OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_integer1;#endif#if OMPI_HAVE_FORTRAN_INTEGER2OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_integer2;#endif#if OMPI_HAVE_FORTRAN_INTEGER4OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_integer4;#endif#if OMPI_HAVE_FORTRAN_INTEGER8OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_integer8;#endif#if OMPI_HAVE_FORTRAN_INTEGER16OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_integer16;#endif#if OMPI_HAVE_FORTRAN_REAL4OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_real4; #endif#if OMPI_HAVE_FORTRAN_REAL8OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_real8;#endif#if OMPI_HAVE_FORTRAN_REAL16OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_real16;#endif#if OMPI_HAVE_FORTRAN_REAL4OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_complex8;#endif#if OMPI_HAVE_FORTRAN_REAL8OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_complex16;#endif#if OMPI_HAVE_FORTRAN_REAL16OMPI_DECLSPEC extern struct ompi_datatype_t ompi_mpi_complex32;#endifOMPI_DECLSPEC extern struct ompi_errhandler_t ompi_mpi_errhandler_null;OMPI_DECLSPEC extern struct ompi_errhandler_t ompi_mpi_errors_are_fatal;OMPI_DECLSPEC extern struct ompi_errhandler_t ompi_mpi_errors_return;OMPI_DECLSPEC extern struct ompi_win_t ompi_mpi_win_null;OMPI_DECLSPEC extern struct ompi_file_t ompi_mpi_file_null;OMPI_DECLSPEC extern struct ompi_info_t ompi_mpi_info_null;OMPI_DECLSPEC extern MPI_Fint *MPI_F_STATUS_IGNORE;OMPI_DECLSPEC extern MPI_Fint *MPI_F_STATUSES_IGNORE;/* * MPI predefined handles */#define MPI_COMM_WORLD (&ompi_mpi_comm_world)#define MPI_COMM_SELF (&ompi_mpi_comm_self)#define MPI_GROUP_EMPTY (&ompi_mpi_group_empty)#define MPI_MAX (&ompi_mpi_op_max)#define MPI_MIN (&ompi_mpi_op_min)#define MPI_SUM (&ompi_mpi_op_sum)#define MPI_PROD (&ompi_mpi_op_prod)#define MPI_LAND (&ompi_mpi_op_land)#define MPI_BAND (&ompi_mpi_op_band)#define MPI_LOR (&ompi_mpi_op_lor)#define MPI_BOR (&ompi_mpi_op_bor)#define MPI_LXOR (&ompi_mpi_op_lxor)#define MPI_BXOR (&ompi_mpi_op_bxor)#define MPI_MAXLOC (&ompi_mpi_op_maxloc)#define MPI_MINLOC (&ompi_mpi_op_minloc)#define MPI_REPLACE (&ompi_mpi_op_replace)/* C datatypes */#define MPI_DATATYPE_NULL (&ompi_mpi_datatype_null)#define MPI_BYTE (&ompi_mpi_byte)#define MPI_PACKED (&ompi_mpi_packed)#define MPI_CHAR (&ompi_mpi_char)#define MPI_SHORT (&ompi_mpi_short)#define MPI_INT (&ompi_mpi_int)#define MPI_LONG (&ompi_mpi_long)#define MPI_FLOAT (&ompi_mpi_float)#define MPI_DOUBLE (&ompi_mpi_double)#define MPI_LONG_DOUBLE (&ompi_mpi_long_double)#define MPI_UNSIGNED_CHAR (&ompi_mpi_unsigned_char)#define MPI_SIGNED_CHAR (&ompi_mpi_signed_char)#define MPI_UNSIGNED_SHORT (&ompi_mpi_unsigned_short)#define MPI_UNSIGNED_LONG (&ompi_mpi_unsigned_long)#define MPI_UNSIGNED (&ompi_mpi_unsigned)#define MPI_FLOAT_INT (&ompi_mpi_float_int)#define MPI_DOUBLE_INT (&ompi_mpi_double_int)#define MPI_LONG_DOUBLE_INT (&ompi_mpi_longdbl_int)#define MPI_LONG_INT (&ompi_mpi_long_int)#define MPI_SHORT_INT (&ompi_mpi_short_int)#define MPI_2INT (&ompi_mpi_2int)#define MPI_UB (&ompi_mpi_ub)#define MPI_LB (&ompi_mpi_lb)#define MPI_WCHAR (&ompi_mpi_wchar)#if HAVE_LONG_LONG#define MPI_LONG_LONG_INT (&ompi_mpi_long_long_int)#define MPI_LONG_LONG (&ompi_mpi_long_long_int)#define MPI_UNSIGNED_LONG_LONG (&ompi_mpi_unsigned_long_long)#endif /* HAVE_LONG_LONG */#define MPI_2COMPLEX (&ompi_mpi_2cplex)#define MPI_2DOUBLE_COMPLEX (&ompi_mpi_2dblcplex)/* Fortran datatype bindings */#define MPI_CHARACTER (&ompi_mpi_character)#define MPI_LOGICAL (&ompi_mpi_logic)#define MPI_INTEGER (&ompi_mpi_integer)#if OMPI_HAVE_FORTRAN_INTEGER1#define MPI_INTEGER1 (&ompi_mpi_integer1)#endif#if OMPI_HAVE_FORTRAN_INTEGER2#define MPI_INTEGER2 (&ompi_mpi_integer2)#endif#if OMPI_HAVE_FORTRAN_INTEGER4#define MPI_INTEGER4 (&ompi_mpi_integer4)#endif#if OMPI_HAVE_FORTRAN_INTEGER8#define MPI_INTEGER8 (&ompi_mpi_integer8)#endif#if OMPI_HAVE_FORTRAN_INTEGER16#define MPI_INTEGER16 (&ompi_mpi_integer16)#endif#define MPI_REAL (&ompi_mpi_real)#if OMPI_HAVE_FORTRAN_REAL4#define MPI_REAL4 (&ompi_mpi_real4)#endif#if OMPI_HAVE_FORTRAN_REAL8#define MPI_REAL8 (&ompi_mpi_real8)#endif#if OMPI_HAVE_FORTRAN_REAL16#define MPI_REAL16 (&ompi_mpi_real16)#endif#define MPI_DOUBLE_PRECISION (&ompi_mpi_dblprec)#define MPI_COMPLEX (&ompi_mpi_cplex)#if OMPI_HAVE_FORTRAN_REAL4#define MPI_COMPLEX8 (&ompi_mpi_complex8)#endif#if OMPI_HAVE_FORTRAN_REAL8#define MPI_COMPLEX16 (&ompi_mpi_complex16)#endif#if OMPI_HAVE_FORTRAN_REAL16#define MPI_COMPLEX32 (&ompi_mpi_complex32)#endif#define MPI_DOUBLE_COMPLEX (&ompi_mpi_dblcplex)#define MPI_2REAL (&ompi_mpi_2real)#define MPI_2DOUBLE_PRECISION (&ompi_mpi_2dblprec)#define MPI_2INTEGER (&ompi_mpi_2integer)#define MPI_ERRORS_ARE_FATAL (&ompi_mpi_errors_are_fatal)#define MPI_ERRORS_RETURN (&ompi_mpi_errors_return)/* Typeclass definition for MPI_Type_match_size */#define MPI_TYPECLASS_INTEGER 1#define MPI_TYPECLASS_REAL 2#define MPI_TYPECLASS_COMPLEX 3/* * For applications still using the old [non-standard] ROMIO conventions */#define MPIO_Request MPI_Request#define MPIO_Test MPI_Test#define MPIO_Wait MPI_Wait/* * MPI API */OMPI_DECLSPEC int MPI_Abort(MPI_Comm comm, int errorcode);OMPI_DECLSPEC int MPI_Accumulate(void *origin_addr, int origin_count, MPI_Datatype origin_datatype, int target_rank, MPI_Aint target_disp, int target_count, MPI_Datatype target_datatype, MPI_Op op, MPI_Win win); OMPI_DECLSPEC int MPI_Add_error_class(int *errorclass);OMPI_DECLSPEC int MPI_Add_error_code(int errorclass, int *errorcode);OMPI_DECLSPEC int MPI_Add_error_string(int errorcode, char *string);OMPI_DECLSPEC int MPI_Address(void *location, MPI_Aint *address);OMPI_DECLSPEC int MPI_Allgather(void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -