Skip to content

Commit 851b513

Browse files
committed
Add MPI_Scan to generated C bindings
Signed-off-by: Jake Tronge <jtronge@lanl.gov>
1 parent 57ed5bb commit 851b513

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

ompi/include/mpi.h.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1943,6 +1943,8 @@ OMPI_DECLSPEC int MPI_Rsend_init(const void *buf, int count, MPI_Datatype datat
19431943
MPI_Request *request);
19441944
OMPI_DECLSPEC int MPI_Scan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,
19451945
MPI_Op op, MPI_Comm comm);
1946+
OMPI_DECLSPEC int MPI_Scan_c(const void *sendbuf, void *recvbuf, MPI_Count count, MPI_Datatype datatype,
1947+
MPI_Op op, MPI_Comm comm);
19461948
OMPI_DECLSPEC int MPI_Iscan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,
19471949
MPI_Op op, MPI_Comm comm, MPI_Request *request);
19481950
OMPI_DECLSPEC int MPI_Scan_init(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,
@@ -2723,6 +2725,8 @@ OMPI_DECLSPEC int PMPI_Rsend_init(const void *buf, int count, MPI_Datatype data
27232725
MPI_Request *request);
27242726
OMPI_DECLSPEC int PMPI_Scan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,
27252727
MPI_Op op, MPI_Comm comm);
2728+
OMPI_DECLSPEC int PMPI_Scan_c(const void *sendbuf, void *recvbuf, MPI_Count count, MPI_Datatype datatype,
2729+
MPI_Op op, MPI_Comm comm);
27262730
OMPI_DECLSPEC int PMPI_Iscan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,
27272731
MPI_Op op, MPI_Comm comm, MPI_Request *request);
27282732
OMPI_DECLSPEC int PMPI_Scan_init(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,

ompi/mpi/c/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ prototype_sources = \
5252
alltoallw.c.in \
5353
send.c.in \
5454
isend.c.in \
55+
scan.c.in \
5556
recv.c.in \
5657
irecv.c.in \
5758
waitsome.c.in \
@@ -393,7 +394,7 @@ interface_profile_sources = \
393394
rput.c \
394395
rsend_init.c \
395396
rsend.c \
396-
scan.c \
397+
generated_scan.c \
397398
iscan.c \
398399
scan_init.c \
399400
scatter.c \

ompi/mpi/c/scan.c renamed to ompi/mpi/c/scan.c.in

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,8 @@
3434
#include "ompi/memchecker.h"
3535
#include "ompi/runtime/ompi_spc.h"
3636

37-
#if OMPI_BUILD_MPI_PROFILING
38-
#if OPAL_HAVE_WEAK_SYMBOLS
39-
#pragma weak MPI_Scan = PMPI_Scan
40-
#endif
41-
#define MPI_Scan PMPI_Scan
42-
#endif
43-
44-
static const char FUNC_NAME[] = "MPI_Scan";
45-
46-
47-
int MPI_Scan(const void *sendbuf, void *recvbuf, int count,
48-
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
37+
PROTOTYPE ERROR_CLASS scan(BUFFER sendbuf, BUFFER_OUT recvbuf, COUNT count,
38+
DATATYPE datatype, OP op, COMM comm)
4939
{
5040
int err;
5141

0 commit comments

Comments
 (0)