From 13d88924fe017802a09644f08c8e347d9e969cd3 Mon Sep 17 00:00:00 2001 From: Jeff Hammond Date: Wed, 2 Dec 2015 07:11:01 -0800 Subject: [PATCH] remove const from definitions of MPI-2 functions the following functions were deprecated in MPI-2 and deleted in MPI-3, hence should not have const arguments, since that is an MPI-3 addition. MPI_Type_hindexed MPI_Type_struct MPI_Address --- src/wrappers/src/log_mpi_core.c | 12 ++++++------ src/wrappers/src/trace_mpi_core.c | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/wrappers/src/log_mpi_core.c b/src/wrappers/src/log_mpi_core.c index 349429a..831e8e6 100644 --- a/src/wrappers/src/log_mpi_core.c +++ b/src/wrappers/src/log_mpi_core.c @@ -3877,7 +3877,7 @@ double MPI_Wtime( void ) } #endif -int MPI_Address( MPE_CONST void * location, MPI_Aint * address ) +int MPI_Address( void * location, MPI_Aint * address ) { int returnVal; MPE_LOG_STATE_DECL @@ -5490,8 +5490,8 @@ int MPI_Type_free(MPI_Datatype *datatype) return returnVal; } -int MPI_Type_hindexed(int count, MPE_CONST int *blocklens, - MPE_CONST MPI_Aint *indices, +int MPI_Type_hindexed(int count, int *blocklens, + MPI_Aint *indices, MPI_Datatype old_type, MPI_Datatype *newtype) { int returnVal; @@ -5661,9 +5661,9 @@ int MPI_Type_size(MPI_Datatype datatype, int *size) return returnVal; } -int MPI_Type_struct(int count, MPE_CONST int *blocklens, - MPE_CONST MPI_Aint *indices, - MPE_CONST MPI_Datatype *old_types, MPI_Datatype *newtype ) +int MPI_Type_struct(int count, int *blocklens, + MPI_Aint *indices, + MPI_Datatype *old_types, MPI_Datatype *newtype ) { int returnVal; MPE_LOG_STATE_DECL diff --git a/src/wrappers/src/trace_mpi_core.c b/src/wrappers/src/trace_mpi_core.c index 23078ce..ce0305c 100644 --- a/src/wrappers/src/trace_mpi_core.c +++ b/src/wrappers/src/trace_mpi_core.c @@ -1207,7 +1207,7 @@ double MPI_Wtime(void) } #endif -int MPI_Address(MPE_CONST void *location, MPI_Aint *address) +int MPI_Address( void *location, MPI_Aint *address) { int returnVal; int llrank; @@ -2039,8 +2039,8 @@ int MPI_Type_free(MPI_Datatype *datatype) return returnVal; } -int MPI_Type_hindexed(int count, MPE_CONST int *blocklens, - MPE_CONST MPI_Aint *indices, MPI_Datatype old_type, +int MPI_Type_hindexed(int count, int *blocklens, + MPI_Aint *indices, MPI_Datatype old_type, MPI_Datatype *newtype) { int returnVal; @@ -2141,9 +2141,9 @@ int MPI_Type_size(MPI_Datatype datatype, int *size) return returnVal; } -int MPI_Type_struct(int count, MPE_CONST int *blocklens, - MPE_CONST MPI_Aint *indices, - MPE_CONST MPI_Datatype *old_types, MPI_Datatype *newtype) +int MPI_Type_struct(int count, int *blocklens, + MPI_Aint *indices, + MPI_Datatype *old_types, MPI_Datatype *newtype) { int returnVal; int llrank; -- 2.6.2