From 819fb3779ffea39dd1f29a54f9f63b6c4bc2f909 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Fri, 3 Oct 2014 10:29:34 +0200 Subject: [PATCH] provide new unimplemented signatures for RMA MPI calls --- include/smpi/smpi.h | 7 +++++++ src/smpi/smpi_mpi.c | 28 ++++++++++++++++++++++++++++ src/smpi/smpi_pmpi.c | 28 ++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+) diff --git a/include/smpi/smpi.h b/include/smpi/smpi.h index a529e37be9..0d2a1b4568 100644 --- a/include/smpi/smpi.h +++ b/include/smpi/smpi.h @@ -752,6 +752,13 @@ MPI_CALL(XBT_PUBLIC(int), MPI_Comm_spawn,( char *command, char **argv, int maxpr MPI_CALL(XBT_PUBLIC(int), MPI_Comm_spawn_multiple,( int count, char **array_of_commands, char*** array_of_argv, int* array_of_maxprocs, MPI_Info* array_of_info, int root, MPI_Comm comm, MPI_Comm *intercomm, int* array_of_errcodes)); MPI_CALL(XBT_PUBLIC(int), MPI_Comm_get_parent,( MPI_Comm *parent)); +MPI_CALL(XBT_PUBLIC(int), MPI_Win_complete,(MPI_Win win)); +MPI_CALL(XBT_PUBLIC(int), MPI_Win_lock,(int lock_type, int rank, int assert, MPI_Win win)); +MPI_CALL(XBT_PUBLIC(int), MPI_Win_post,(MPI_Group group, int assert, MPI_Win win)); +MPI_CALL(XBT_PUBLIC(int), MPI_Win_start,(MPI_Group group, int assert, MPI_Win win)); +MPI_CALL(XBT_PUBLIC(int), MPI_Win_test,(MPI_Win win, int *flag)); +MPI_CALL(XBT_PUBLIC(int), MPI_Win_unlock,(int rank, MPI_Win win)); +MPI_CALL(XBT_PUBLIC(int), MPI_Win_wait,(MPI_Win win)); //FIXME: End of all the not yet implemented stuff diff --git a/src/smpi/smpi_mpi.c b/src/smpi/smpi_mpi.c index 90bc27fb52..18ae4f4e3a 100644 --- a/src/smpi/smpi_mpi.c +++ b/src/smpi/smpi_mpi.c @@ -844,6 +844,34 @@ int MPI_Win_get_name(MPI_Win win, char * name, int* len) return PMPI_Win_get_name(win,name,len); } +int MPI_Win_complete(MPI_Win win){ + return PMPI_Win_complete(win); +} + +int MPI_Win_lock(int lock_type, int rank, int assert, MPI_Win win) { + return PMPI_Win_lock(lock_type, rank, assert, win); +} + +int MPI_Win_post(MPI_Group group, int assert, MPI_Win win){ + return PMPI_Win_post(group, assert, win); +} + +int MPI_Win_start(MPI_Group group, int assert, MPI_Win win){ + return PMPI_Win_start(group, assert, win); +} + +int MPI_Win_test(MPI_Win win, int *flag){ + return PMPI_Win_test(win, flag); +} + +int MPI_Win_unlock(int rank, MPI_Win win){ + return PMPI_Win_unlock(rank, win); +} + +int MPI_Win_wait(MPI_Win win){ + return PMPI_Win_wait(win); +} + int MPI_Info_create( MPI_Info *info){ return PMPI_Info_create( info); } diff --git a/src/smpi/smpi_pmpi.c b/src/smpi/smpi_pmpi.c index e75d6452f5..899f7cb9af 100644 --- a/src/smpi/smpi_pmpi.c +++ b/src/smpi/smpi_pmpi.c @@ -3380,3 +3380,31 @@ int PMPI_Comm_spawn_multiple( int count, char **array_of_commands, char*** array int PMPI_Comm_get_parent( MPI_Comm *parent){ NOT_YET_IMPLEMENTED } + +int PMPI_Win_complete(MPI_Win win){ + NOT_YET_IMPLEMENTED +} + +int PMPI_Win_lock(int lock_type, int rank, int assert, MPI_Win win) { + NOT_YET_IMPLEMENTED +} + +int PMPI_Win_post(MPI_Group group, int assert, MPI_Win win){ + NOT_YET_IMPLEMENTED +} + +int PMPI_Win_start(MPI_Group group, int assert, MPI_Win win){ + NOT_YET_IMPLEMENTED +} + +int PMPI_Win_test(MPI_Win win, int *flag){ + NOT_YET_IMPLEMENTED +} + +int PMPI_Win_unlock(int rank, MPI_Win win){ + NOT_YET_IMPLEMENTED +} + +int PMPI_Win_wait(MPI_Win win){ + NOT_YET_IMPLEMENTED +} -- 2.20.1