⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 allgatherv.c

📁 fortran并行计算包
💻 C
字号:
/*   (C) 2004 by Argonne National Laboratory.       See COPYRIGHT in top-level directory.*/#include "collchk.h" int MPI_Allgatherv( void* sbuff, int scnt, MPI_Datatype stype,                    void* rbuff, int *rcnts, int *displs, MPI_Datatype rtype,                    MPI_Comm comm ){    char            call[COLLCHK_SM_STRLEN];    int             g2g = 1, r;    int             are2buffs;    sprintf( call, "ALLGATHERV" );    /* Check if init has been called */    g2g = CollChk_is_init();    if( g2g ) {        MPI_Comm_rank(comm, &r);        /* check for call consistency */        CollChk_same_call( comm, call );        /* check MPI_IN_PLACE consistency */        CollChk_check_buff( comm, sbuff, call );        /* check data signature consistency */#if defined( HAVE_MPI_IN_PLACE )        are2buffs = ( sbuff != MPI_IN_PLACE );#else        are2buffs = 1;#endif        CollChk_dtype_allgatherv(comm, stype, scnt, rtype, rcnts,                                 are2buffs, call);        /* make the call */        return PMPI_Allgatherv( sbuff, scnt, stype,                                rbuff, rcnts, displs, rtype,                                comm );    }    else {        /* init not called */        return CollChk_err_han( "MPI_Init() has not been called!",                                COLLCHK_ERR_NOT_INIT, call, comm );    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -