Skip to content

Commit 9a38ba5

Browse files
committed
ompitrace: MPI_Address -> MPI_Get_address
Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 0e6966f commit 9a38ba5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ompi/contrib/libompitrace/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ libompitrace_la_SOURCES = \
2727
add_error_class.c \
2828
add_error_code.c \
2929
add_error_string.c \
30-
address.c \
3130
allgather.c \
3231
allgatherv.c \
3332
alloc_mem.c \
3433
allreduce.c \
3534
barrier.c \
3635
bcast.c \
36+
get_address.c \
3737
finalize.c \
3838
init.c \
3939
isend.c \

ompi/contrib/libompitrace/address.c renamed to ompi/contrib/libompitrace/get_address.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
1212
* Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
13+
* Copyright (c) 2018 Los Alamos National Security, LLC. All
14+
* rights reserved.
1315
* $COPYRIGHT$
1416
*
1517
* Additional copyrights may follow
@@ -24,16 +26,16 @@
2426
#include "opal_stdint.h"
2527
#include "ompi/mpi/c/bindings.h"
2628

27-
int MPI_Address(void *location, MPI_Aint *address)
29+
int MPI_Get_address(const void *location, MPI_Aint *address)
2830
{
2931

3032
int rank;
3133

3234
PMPI_Comm_rank(MPI_COMM_WORLD, &rank);
3335

34-
fprintf(stderr, "MPI_ADDRESS[%d]: location %0" PRIxPTR " address %0" PRIxPTR "\n",
36+
fprintf(stderr, "MPI_GET_ADDRESS[%d]: location %0" PRIxPTR " address %0" PRIxPTR "\n",
3537
rank, (uintptr_t)location, (uintptr_t)address);
3638
fflush(stderr);
3739

38-
return PMPI_Address(location, address);
40+
return PMPI_Get_address(location, address);
3941
}

0 commit comments

Comments
 (0)