From 6a78265b2f012c93ecdcffd70e8cae2ea14d1e0d Mon Sep 17 00:00:00 2001 From: Prabhanjan Kambadur Date: Tue, 20 Jan 2004 06:30:33 +0000 Subject: [PATCH] Adding the shell functions for barrier, bcast, bsend, bsend_init, buffer_attach and buffer_detach This commit was SVN r492. --- src/mpi/interface/c/Makefile.am | 6 ++++++ src/mpi/interface/c/barrier.c | 16 ++++++++++++++++ src/mpi/interface/c/bcast.c | 17 +++++++++++++++++ src/mpi/interface/c/bsend.c | 18 ++++++++++++++++++ src/mpi/interface/c/bsend_init.c | 17 +++++++++++++++++ src/mpi/interface/c/buffer_attach.c | 17 +++++++++++++++++ src/mpi/interface/c/buffer_detach.c | 16 ++++++++++++++++ src/mpi/interface/c/profile/Makefile.am | 6 ++++++ 8 files changed, 113 insertions(+) create mode 100644 src/mpi/interface/c/barrier.c create mode 100644 src/mpi/interface/c/bcast.c create mode 100644 src/mpi/interface/c/bsend.c create mode 100644 src/mpi/interface/c/bsend_init.c create mode 100644 src/mpi/interface/c/buffer_attach.c create mode 100644 src/mpi/interface/c/buffer_detach.c diff --git a/src/mpi/interface/c/Makefile.am b/src/mpi/interface/c/Makefile.am index 5ff2755ebb..f6c5c40bf3 100644 --- a/src/mpi/interface/c/Makefile.am +++ b/src/mpi/interface/c/Makefile.am @@ -72,6 +72,12 @@ libmpi_c_mpi_la_SOURCES = \ attr_delete.c \ attr_get.c \ attr_put.c \ + barrier.c \ + bcast.c \ + bsend_init.c \ + bsend.c \ + buffer_attach.c \ + buffer_detach.c \ comm_get_name.c \ comm_set_name.c \ finalize.c \ diff --git a/src/mpi/interface/c/barrier.c b/src/mpi/interface/c/barrier.c new file mode 100644 index 0000000000..74344357bb --- /dev/null +++ b/src/mpi/interface/c/barrier.c @@ -0,0 +1,16 @@ +/* + * $HEADERS$ + */ +#include "lam_config.h" +#include + +#include "mpi.h" +#include "mpi/interface/c/bindings.h" + +#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES +#pragma weak MPI_Barrier = PMPI_Barrier +#endif + +int MPI_Barrier(MPI_Comm comm) { + return MPI_SUCCESS; +} diff --git a/src/mpi/interface/c/bcast.c b/src/mpi/interface/c/bcast.c new file mode 100644 index 0000000000..4260bc5d6a --- /dev/null +++ b/src/mpi/interface/c/bcast.c @@ -0,0 +1,17 @@ +/* + * $HEADERS$ + */ +#include "lam_config.h" +#include + +#include "mpi.h" +#include "mpi/interface/c/bindings.h" + +#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES +#pragma weak MPI_Bcast = PMPI_Bcast +#endif + +int MPI_Bcast(void *buffer, int count, MPI_Datatype datatype, + int root, MPI_Comm comm) { + return MPI_SUCCESS; +} diff --git a/src/mpi/interface/c/bsend.c b/src/mpi/interface/c/bsend.c new file mode 100644 index 0000000000..8fb33c102c --- /dev/null +++ b/src/mpi/interface/c/bsend.c @@ -0,0 +1,18 @@ +/* + * $HEADERS$ + */ +#include "lam_config.h" +#include + +#include "mpi.h" +#include "mpi/interface/c/bindings.h" + +#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES +#pragma weak MPI_Bsend = PMPI_Bsend +#endif + + +int MPI_Bsend(void *buf, int count, MPI_Datatype datatype, + int dest, int tag, MPI_Comm comm) { + return MPI_SUCCESS; +} diff --git a/src/mpi/interface/c/bsend_init.c b/src/mpi/interface/c/bsend_init.c new file mode 100644 index 0000000000..c46f910167 --- /dev/null +++ b/src/mpi/interface/c/bsend_init.c @@ -0,0 +1,17 @@ +/* + * $HEADERS$ + */ +#include "lam_config.h" +#include + +#include "mpi.h" +#include "mpi/interface/c/bindings.h" + +#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES +#pragma weak MPI_Bsend_init = PMPI_Bsend_init +#endif + +int MPI_Bsend_init(void *buf, int count, MPI_Datatype datatype, + int dest, int tag, MPI_Comm comm, MPI_Request *request) { + return MPI_SUCCESS; +} diff --git a/src/mpi/interface/c/buffer_attach.c b/src/mpi/interface/c/buffer_attach.c new file mode 100644 index 0000000000..f77c7972f0 --- /dev/null +++ b/src/mpi/interface/c/buffer_attach.c @@ -0,0 +1,17 @@ +/* + * $HEADERS$ + */ +#include "lam_config.h" +#include + +#include "mpi.h" +#include "mpi/interface/c/bindings.h" + +#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES +#pragma weak MPI_Buffer_attach = PMPI_Buffer_attach +#endif + + +int MPI_Buffer_attach(void *buffer, int size) { + return MPI_SUCCESS; +} diff --git a/src/mpi/interface/c/buffer_detach.c b/src/mpi/interface/c/buffer_detach.c new file mode 100644 index 0000000000..8623d4ea47 --- /dev/null +++ b/src/mpi/interface/c/buffer_detach.c @@ -0,0 +1,16 @@ +/* + * $HEADERS$ + */ +#include "lam_config.h" +#include + +#include "mpi.h" +#include "mpi/interface/c/bindings.h" + +#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES +#pragma weak MPI_Buffer_detach = PMPI_Buffer_detach +#endif + +int MPI_Buffer_detach(void *buffer, int *size) { + return MPI_SUCCESS; +} diff --git a/src/mpi/interface/c/profile/Makefile.am b/src/mpi/interface/c/profile/Makefile.am index 78922fbca7..bf466e1d37 100644 --- a/src/mpi/interface/c/profile/Makefile.am +++ b/src/mpi/interface/c/profile/Makefile.am @@ -45,6 +45,12 @@ nodist_libmpi_c_pmpi_la_SOURCES = \ pattr_delete.c \ pattr_get.c \ pattr_put.c \ + pbarrier.c \ + pbcast.c \ + pbsend_init.c \ + pbsend.c \ + pbuffer_attach.c \ + pbuffer_detach.c \ pcomm_get_name.c \ pcomm_set_name.c \ pfinalize.c \