2004-01-25 04:51:49 +03:00
|
|
|
/*
|
|
|
|
* $HEADERS$
|
|
|
|
*/
|
|
|
|
#include "lam_config.h"
|
|
|
|
|
|
|
|
#include "mpi.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mpi/c/bindings.h"
|
2004-05-01 00:36:40 +04:00
|
|
|
#include "runtime/runtime.h"
|
|
|
|
#include "errhandler/errhandler.h"
|
|
|
|
#include "communicator/communicator.h"
|
2004-01-25 04:51:49 +03:00
|
|
|
|
|
|
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
|
|
|
#pragma weak MPI_Get_address = PMPI_Get_address
|
|
|
|
#endif
|
|
|
|
|
2004-04-20 22:50:43 +04:00
|
|
|
#if LAM_PROFILING_DEFINES
|
|
|
|
#include "mpi/c/profile/defines.h"
|
|
|
|
#endif
|
|
|
|
|
2004-05-01 00:36:40 +04:00
|
|
|
static char FUNC_NAME[] = "MPI_Get_address";
|
|
|
|
|
|
|
|
int MPI_Get_address(void *location, MPI_Aint *address)
|
|
|
|
{
|
|
|
|
if( MPI_PARAM_CHECK ) {
|
|
|
|
if( LAM_MPI_INVALID_STATE ) {
|
|
|
|
LAM_ERRHANDLER_RETURN( MPI_ERR_INTERN, (lam_communicator_t*)NULL,
|
|
|
|
MPI_ERR_INTERN, FUNC_NAME );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*address = (MPI_Aint)location;
|
2004-01-25 04:51:49 +03:00
|
|
|
return MPI_SUCCESS;
|
|
|
|
}
|