MPI_GET_ADDRESS(3)MPI_GET_ADDRESS(3)NAMEMPI_Get_address - Gets the address of a location in memory
SYNOPSIS
C:
#include <mpi.h>
int MPI_Get_address( location, address)
void *location;
MPI_Aint *address;
C++:
#include <mpi.h>
Aint Get_address(
void* location)
Fortran:
INCLUDE "mpif.h" (or USE MPI)
<type> LOCATION(*)
INTEGER ierror
INTEGER(KIND=MPI_ADDRESS_KIND) address
CALL MPI_GET_ADDRESS(location, address, ierror)
DESCRIPTION
The MPI_Get_address routine gets the address of a location in memory.
This routine is provided for both Fortran and C programmers. On many
systems, the address returned by this routine will be the same as
produced by the C & operator, but this is not required in C and might not
be true of systems with word- rather than byte-oriented instructions or
systems with segmented address spaces. MPI_Get_address is an MPI-2
implementation replacing MPI_Address. It returns an MPI_Aint value,
which makes it better suited for ABI64. Currently, the Fortran version
of this function is implemented only in ABI 64. This routine accepts the
following parameters:
location Specifies the location in caller memory (choice)
address Returns the address of the location (MPI_Aint)
ierror Specifies the return code value for successful completion,
which is in MPI_SUCCESS. MPI_SUCCESS is defined in the mpif.h
file.
Page 1