Skip to content

Commit

Permalink
sessions: remove win_allocate_shared_from_group
Browse files Browse the repository at this point in the history
not part of the MPI 4 standard so removing

related to #54

Signed-off-by: Howard Pritchard <howardp@lanl.gov>
  • Loading branch information
hppritcha committed Aug 3, 2021
1 parent 0de2146 commit 0d2aa87
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 109 deletions.
6 changes: 0 additions & 6 deletions ompi/include/mpi.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -1987,9 +1987,6 @@ OMPI_DECLSPEC int MPI_Win_allocate(MPI_Aint size, int disp_unit, MPI_Info info,
MPI_Comm comm, void *baseptr, MPI_Win *win);
OMPI_DECLSPEC int MPI_Win_allocate_shared(MPI_Aint size, int disp_unit, MPI_Info info,
MPI_Comm comm, void *baseptr, MPI_Win *win);
OMPI_DECLSPEC int MPI_Win_allocate_shared_from_group (MPI_Aint size, int disp_unit, MPI_Info info,
MPI_Group group, const char *tag, void *baseptr,
MPI_Win *win);
OMPI_DECLSPEC int MPI_Win_attach(MPI_Win win, void *base, MPI_Aint size);
OMPI_DECLSPEC MPI_Fint MPI_Win_c2f(MPI_Win win);
OMPI_DECLSPEC int MPI_Win_call_errhandler(MPI_Win win, int errorcode);
Expand Down Expand Up @@ -2709,9 +2706,6 @@ OMPI_DECLSPEC int PMPI_Win_allocate(MPI_Aint size, int disp_unit, MPI_Info info
MPI_Comm comm, void *baseptr, MPI_Win *win);
OMPI_DECLSPEC int PMPI_Win_allocate_shared(MPI_Aint size, int disp_unit, MPI_Info info,
MPI_Comm comm, void *baseptr, MPI_Win *win);
OMPI_DECLSPEC int PMPI_Win_allocate_shared_from_group (MPI_Aint size, int disp_unit, MPI_Info info,
MPI_Group group, const char *tag, void *baseptr,
MPI_Win *win);
OMPI_DECLSPEC int PMPI_Win_attach(MPI_Win win, void *base, MPI_Aint size);
OMPI_DECLSPEC MPI_Fint PMPI_Win_c2f(MPI_Win win);
OMPI_DECLSPEC int PMPI_Win_call_errhandler(MPI_Win win, int errorcode);
Expand Down
80 changes: 0 additions & 80 deletions ompi/mpi/c/win_allocate_shared_from_group.c

This file was deleted.

20 changes: 0 additions & 20 deletions ompi/win/win.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,26 +358,6 @@ ompi_win_allocate_shared(size_t size, int disp_unit, opal_info_t *info,
return OMPI_SUCCESS;
}

int ompi_win_allocate_shared_from_group (size_t size, int disp_unit, opal_info_t *info, ompi_group_t *group,
const char *tag, void *baseptr, ompi_win_t** newwin)
{
/* NTH: dummy implementation until the osc modules are updated for group communicator
* creation. This implemention will probably continue to exist for modules that do
* not provide group-based window creation. */
ompi_communicator_t *comm;
int rc;

rc = ompi_comm_create_from_group (group, tag, info, MPI_ERRHANDLER_NULL, &comm);
if (OPAL_UNLIKELY(OMPI_SUCCESS == rc)) {
return rc;
}

rc = ompi_win_allocate_shared (size, disp_unit, info, comm, baseptr, newwin);
ompi_comm_free (&comm);
return rc;
}


int
ompi_win_create_dynamic(opal_info_t *info, ompi_communicator_t *comm, ompi_win_t **newwin)
{
Expand Down
3 changes: 0 additions & 3 deletions ompi/win/win.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ int ompi_win_allocate(size_t size, int disp_unit, opal_info_t *info,
ompi_communicator_t *comm, void *baseptr, ompi_win_t **newwin);
int ompi_win_allocate_shared(size_t size, int disp_unit, opal_info_t *info,
ompi_communicator_t *comm, void *baseptr, ompi_win_t **newwin);
int ompi_win_allocate_shared_from_group (size_t size, int disp_unit, opal_info_t *info,
ompi_group_t *group, const char *tag, void *baseptr,
ompi_win_t **newwin);
int ompi_win_create_dynamic(opal_info_t *info, ompi_communicator_t *comm, ompi_win_t **newwin);
int ompi_win_create_dynamic_from_group (opal_info_t *info, ompi_group_t *group, const char *tag,
ompi_win_t **newwin);
Expand Down

0 comments on commit 0d2aa87

Please sign in to comment.