1 /*
2 * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
3 * University Research and Technology
4 * Corporation. All rights reserved.
5 * Copyright (c) 2004-2005 The University of Tennessee and The University
6 * of Tennessee Research Foundation. All rights
7 * reserved.
8 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
9 * University of Stuttgart. All rights reserved.
10 * Copyright (c) 2004-2005 The Regents of the University of California.
11 * All rights reserved.
12 * Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
13 * Copyright (c) 2018 Los Alamos National Security, LLC. All
14 * rights reserved.
15 * $COPYRIGHT$
16 *
17 * Additional copyrights may follow
18 *
19 * $HEADER$
20 */
21
22 #include "ompi_config.h"
23
24 #include <stdio.h>
25
26 #include "opal_stdint.h"
27 #include "ompi/mpi/c/bindings.h"
28
29 int MPI_Get_address(const void *location, MPI_Aint *address)
30 {
31
32 int rank;
33
34 PMPI_Comm_rank(MPI_COMM_WORLD, &rank);
35
36 fprintf(stderr, "MPI_GET_ADDRESS[%d]: location %0" PRIxPTR " address %0" PRIxPTR "\n",
37 rank, (uintptr_t)location, (uintptr_t)address);
38 fflush(stderr);
39
40 return PMPI_Get_address(location, address);
41 }