From 65bb9e6b4cffd1cafa23f73b2faf7817c5323ab8 Mon Sep 17 00:00:00 2001 From: Jeff Squyres <jsquyres@cisco.com> Date: Wed, 28 Apr 2021 18:58:44 -0700 Subject: [PATCH] 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> --- ompi/include/mpi.h.in | 6 +++--- ompi/mpi/c/precv_init.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ompi/include/mpi.h.in b/ompi/include/mpi.h.in index 4501d5217c..66e0c51e3f 100644 --- a/ompi/include/mpi.h.in +++ b/ompi/include/mpi.h.in @@ -9,7 +9,7 @@ * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. - * Copyright (c) 2007-2020 Cisco Systems, Inc. All rights reserved + * Copyright (c) 2007-2021 Cisco Systems, Inc. All rights reserved * Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved. * Copyright (c) 2009-2012 Oak Rigde National Laboratory. All rights reserved. * Copyright (c) 2011-2020 Sandia National Laboratories. All rights reserved. @@ -1705,7 +1705,7 @@ OMPI_DECLSPEC int MPI_Pready(int partitions, MPI_Request request); OMPI_DECLSPEC int MPI_Pready_range(int partition_low, int partition_high, MPI_Request request); OMPI_DECLSPEC int MPI_Pready_list(int length, int partition_list[], MPI_Request request); -OMPI_DECLSPEC int MPI_Precv_init(const void* buf, int partitions, MPI_Count count, +OMPI_DECLSPEC int MPI_Precv_init(void* buf, int partitions, MPI_Count count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Request *request); OMPI_DECLSPEC int MPI_Probe(int source, int tag, MPI_Comm comm, MPI_Status *status); @@ -2321,7 +2321,7 @@ OMPI_DECLSPEC int PMPI_Isend(const void *buf, int count, MPI_Datatype datatype, int tag, MPI_Comm comm, MPI_Request *request); OMPI_DECLSPEC int PMPI_Issend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, MPI_Request *request); -OMPI_DECLSPEC int PMPI_Precv_init(const void* buf, int partitions, MPI_Count count, +OMPI_DECLSPEC int PMPI_Precv_init(void* buf, int partitions, MPI_Count count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Request *request); OMPI_DECLSPEC int PMPI_Psend_init(const void* buf, int partitions, MPI_Count count, diff --git a/ompi/mpi/c/precv_init.c b/ompi/mpi/c/precv_init.c index 6639aebbc6..2034e54da0 100644 --- a/ompi/mpi/c/precv_init.c +++ b/ompi/mpi/c/precv_init.c @@ -10,7 +10,7 @@ * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. - * Copyright (c) 2006 Cisco Systems, Inc. All rights reserved. + * Copyright (c) 2006-2021 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2013-2015 Los Alamos National Security, LLC. All rights * reserved. * Copyright (c) 2015 Research Organization for Information Science @@ -43,7 +43,7 @@ static const char FUNC_NAME[] = "MPI_Precv_init"; -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) +int MPI_Precv_init(void* buf, int partitions, MPI_Count count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Request *request) { int rc; -- GitLab