📄 ic_createf.c
字号:
/* ic_create.c *//* Custom Fortran interface file */#include "mpi_fortimpl.h"#if defined(MPI_BUILD_PROFILING) || defined(HAVE_WEAK_SYMBOLS)#if defined(HAVE_WEAK_SYMBOLS)#if defined(HAVE_PRAGMA_WEAK)#if defined(F77_NAME_UPPER)#pragma weak MPI_INTERCOMM_CREATE = PMPI_INTERCOMM_CREATEvoid MPI_INTERCOMM_CREATE ( MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint * );#elif defined(F77_NAME_LOWER_2USCORE)#pragma weak mpi_intercomm_create__ = pmpi_intercomm_create__void mpi_intercomm_create__ ( MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint * );#elif !defined(F77_NAME_LOWER_USCORE)#pragma weak mpi_intercomm_create = pmpi_intercomm_createvoid mpi_intercomm_create ( MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint * );#else#pragma weak mpi_intercomm_create_ = pmpi_intercomm_create_void mpi_intercomm_create_ ( MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint * );#endif#elif defined(HAVE_PRAGMA_HP_SEC_DEF)#if defined(F77_NAME_UPPER)#pragma _HP_SECONDARY_DEF PMPI_INTERCOMM_CREATE MPI_INTERCOMM_CREATE#elif defined(F77_NAME_LOWER_2USCORE)#pragma _HP_SECONDARY_DEF pmpi_intercomm_create__ mpi_intercomm_create__#elif !defined(F77_NAME_LOWER_USCORE)#pragma _HP_SECONDARY_DEF pmpi_intercomm_create mpi_intercomm_create#else#pragma _HP_SECONDARY_DEF pmpi_intercomm_create_ mpi_intercomm_create_#endif#elif defined(HAVE_PRAGMA_CRI_DUP)#if defined(F77_NAME_UPPER)#pragma _CRI duplicate MPI_INTERCOMM_CREATE as PMPI_INTERCOMM_CREATE#elif defined(F77_NAME_LOWER_2USCORE)#pragma _CRI duplicate mpi_intercomm_create__ as pmpi_intercomm_create__#elif !defined(F77_NAME_LOWER_USCORE)#pragma _CRI duplicate mpi_intercomm_create as pmpi_intercomm_create#else#pragma _CRI duplicate mpi_intercomm_create_ as pmpi_intercomm_create_#endif/* end of weak pragmas */#endif/* Include mapping from MPI->PMPI */#include "mpiprof.h"/* Insert the prototypes for the PMPI routines */#undef __MPI_BINDINGS#include "binding.h"#endif#ifdef F77_NAME_UPPER#define mpi_intercomm_create_ PMPI_INTERCOMM_CREATE#elif defined(F77_NAME_LOWER_2USCORE)#define mpi_intercomm_create_ pmpi_intercomm_create__#elif !defined(F77_NAME_LOWER_USCORE)#define mpi_intercomm_create_ pmpi_intercomm_create#else#define mpi_intercomm_create_ pmpi_intercomm_create_#endif#else#ifdef F77_NAME_UPPER#define mpi_intercomm_create_ MPI_INTERCOMM_CREATE#elif defined(F77_NAME_LOWER_2USCORE)#define mpi_intercomm_create_ mpi_intercomm_create__#elif !defined(F77_NAME_LOWER_USCORE)#define mpi_intercomm_create_ mpi_intercomm_create#endif#endif/* Prototype to suppress warnings about missing prototypes */FORTRAN_API void FORT_CALL mpi_intercomm_create_ ( MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint * );FORTRAN_API void FORT_CALL mpi_intercomm_create_ ( MPI_Fint *local_comm, MPI_Fint *local_leader, MPI_Fint *peer_comm, MPI_Fint *remote_leader, MPI_Fint *tag, MPI_Fint *comm_out, MPI_Fint *__ierr ){ MPI_Comm l_comm_out; *__ierr = MPI_Intercomm_create( MPI_Comm_f2c(*local_comm), (int)*local_leader, MPI_Comm_f2c(*peer_comm), (int)*remote_leader, (int)*tag, &l_comm_out); if (*__ierr == MPI_SUCCESS) *comm_out = MPI_Comm_c2f(l_comm_out);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -