Skip to content

Commit 86c2260

Browse files
jsquyrestkordenbrock
authored andcommitted
MPI_Precv_init: the buf arg is not const
According to the latest MPI-4.0 draft (as of May 2021), the "buf" arg to MPI_Precv_init() is not const. Signed-off-by: Jeff Squyres <jsquyres@cisco.com> (cherry picked from commit 65bb9e6)
1 parent 2cd9979 commit 86c2260

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ompi/include/mpi.h.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* University of Stuttgart. All rights reserved.
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
12-
* Copyright (c) 2007-2020 Cisco Systems, Inc. All rights reserved
12+
* Copyright (c) 2007-2021 Cisco Systems, Inc. All rights reserved
1313
* Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved.
1414
* Copyright (c) 2009-2012 Oak Rigde National Laboratory. All rights reserved.
1515
* Copyright (c) 2011-2020 Sandia National Laboratories. All rights reserved.
@@ -1774,7 +1774,7 @@ OMPI_DECLSPEC int MPI_Pready(int partitions, MPI_Request request);
17741774
OMPI_DECLSPEC int MPI_Pready_range(int partition_low, int partition_high,
17751775
MPI_Request request);
17761776
OMPI_DECLSPEC int MPI_Pready_list(int length, int partition_list[], MPI_Request request);
1777-
OMPI_DECLSPEC int MPI_Precv_init(const void* buf, int partitions, MPI_Count count,
1777+
OMPI_DECLSPEC int MPI_Precv_init(void* buf, int partitions, MPI_Count count,
17781778
MPI_Datatype datatype, int source, int tag, MPI_Comm comm,
17791779
MPI_Request *request);
17801780
OMPI_DECLSPEC int MPI_Probe(int source, int tag, MPI_Comm comm, MPI_Status *status);
@@ -2431,7 +2431,7 @@ OMPI_DECLSPEC int PMPI_Isend(const void *buf, int count, MPI_Datatype datatype,
24312431
int tag, MPI_Comm comm, MPI_Request *request);
24322432
OMPI_DECLSPEC int PMPI_Issend(const void *buf, int count, MPI_Datatype datatype, int dest,
24332433
int tag, MPI_Comm comm, MPI_Request *request);
2434-
OMPI_DECLSPEC int PMPI_Precv_init(const void* buf, int partitions, MPI_Count count,
2434+
OMPI_DECLSPEC int PMPI_Precv_init(void* buf, int partitions, MPI_Count count,
24352435
MPI_Datatype datatype, int source, int tag, MPI_Comm comm,
24362436
MPI_Request *request);
24372437
OMPI_DECLSPEC int PMPI_Psend_init(const void* buf, int partitions, MPI_Count count,

ompi/mpi/c/precv_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* University of Stuttgart. All rights reserved.
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
13-
* Copyright (c) 2006 Cisco Systems, Inc. All rights reserved.
13+
* Copyright (c) 2006-2021 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2013-2015 Los Alamos National Security, LLC. All rights
1515
* reserved.
1616
* Copyright (c) 2015 Research Organization for Information Science
@@ -43,7 +43,7 @@
4343
static const char FUNC_NAME[] = "MPI_Precv_init";
4444

4545

46-
int MPI_Precv_init(const void* buf, int partitions, MPI_Count count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Request *request)
46+
int MPI_Precv_init(void* buf, int partitions, MPI_Count count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Request *request)
4747
{
4848
int rc;
4949

0 commit comments

Comments
 (0)