Skip to content

Commit 7be82f5

Browse files
committed
Merge PR #619 from issue-586-deprecated-mpi-func
- Fixes #586
2 parents 7d07373 + ddfc58f commit 7be82f5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/mpi/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ foreach(symbol ${NEEDED_SYMBOLS})
210210
CHECK_SYMBOL_EXISTS(${symbol} "${MPI_HEADERS}" HAVE_${symbol})
211211
if(NOT HAVE_${symbol})
212212
message( STATUS "\${HAVE_${symbol}} = ${HAVE_${symbol}}")
213-
message( WARNING
213+
message( STATUS
214214
"Note: Failed Images not supported by the current MPI implementation! (Needs MPIX experimental features--as of MPI3)")
215215
set(MPI_HAS_FAULT_TOL_EXT NO)
216216
break() # no need to keep looking

src/mpi/mpi_caf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6989,8 +6989,8 @@ static void
69896989
redux_char_by_reference_adapter(void *invec, void *inoutvec, int *len,
69906990
MPI_Datatype *datatype)
69916991
{
6992-
MPI_Aint string_len;
6993-
MPI_Type_extent(*datatype, &string_len);
6992+
MPI_Aint lb, string_len;
6993+
MPI_Type_get_extent(*datatype, &lb, &string_len);
69946994
for (int i = 0; i < *len; i++)
69956995
{
69966996
/* The length of the result is fixed, i.e., no deferred string length is

src/openshmem/openshmem_caf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3094,8 +3094,8 @@ static void \
30943094
redux_char_by_reference_adapter (void *invec, void *inoutvec, int *len,
30953095
MPI_Datatype *datatype)
30963096
{
3097-
long int string_len;
3098-
MPI_Type_extent(*datatype, &string_len);
3097+
long int lb, string_len; // this should be MPI_Aint
3098+
MPI_Type_extent(*datatype, &lb, &string_len);
30993099
for(int i = 0; i < *len; i++)
31003100
{
31013101
/* The length of the result is fixed, i.e., no deferred string length is

0 commit comments

Comments
 (0)