2004-01-21 03:05:46 +03:00
|
|
|
/*
|
|
|
|
* $HEADERS$
|
|
|
|
*/
|
|
|
|
#include "lam_config.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "mpi.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mpi/c/bindings.h"
|
2004-04-06 08:39:09 +04:00
|
|
|
#include "attribute/attribute.h"
|
2004-01-21 03:05:46 +03:00
|
|
|
|
|
|
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
|
|
|
#pragma weak MPI_Comm_get_attr = PMPI_Comm_get_attr
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int MPI_Comm_get_attr(MPI_Comm comm, int comm_keyval,
|
2004-04-06 08:39:09 +04:00
|
|
|
void *attribute_val, int *flag)
|
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
if ((NULL == attribute_val) || (NULL == flag))
|
|
|
|
return MPI_ERR_ARG;
|
|
|
|
|
|
|
|
ret = lam_attr_get(COMM_ATTR, comm, comm_keyval,
|
|
|
|
attribute_val, flag);
|
|
|
|
|
|
|
|
return ret;
|
2004-01-21 03:05:46 +03:00
|
|
|
}
|