1
1
openmpi/src/mpi/c/group_size.c

27 строки
522 B
C
Исходник Обычный вид История

/*
* $HEADERS$
*/
#include "lam_config.h"
#include <stdio.h>
#include "mpi.h"
#include "mpi/interface/c/bindings.h"
#include "mpi/group/group.h"
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
#pragma weak MPI_Group_size = PMPI_Group_size
#endif
int MPI_Group_size(MPI_Group group, int *size) {
/* error checking */
if( MPI_PARAM_CHECK ) {
if( MPI_GROUP_NULL == group ) {
return MPI_ERR_GROUP;
}
}
*size=lam_group_size((lam_group_t *)group);
return MPI_SUCCESS;
}