Commit e574c0fe authored by James Dinan's avatar James Dinan
Browse files

[svn-r10073] Replaced NULL pointers for MPI-3 RMA routines with "notimpl" versions.

No reviewer.
parent 78b1183d
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* (C) 2001 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include "mpidi_ch3_impl.h"
#include "mpidrma.h"
#define MPIDI_FUNC_NOTIMPL(state_name) \
int mpi_errno = MPI_SUCCESS; \
\
MPIDI_STATE_DECL(MPID_STATE_MPIDI_state_name); \
MPIDI_RMA_FUNC_ENTER(MPID_STATE_MPIDI_state_name); \
\
MPIU_ERR_SETANDJUMP(mpi_errno, MPI_ERR_OTHER, "**notimpl"); \
\
fn_exit: \
MPIDI_RMA_FUNC_EXIT(MPID_STATE_MPIDI_state_name); \
return mpi_errno; \
/* --BEGIN ERROR HANDLING-- */ \
fn_fail: \
goto fn_exit; \
/* --END ERROR HANDLING-- */
#undef FUNCNAME
#define FUNCNAME MPIDI_Win_attach
#undef FCNAME
#define FCNAME MPIDI_QUOTE(FUNCNAME)
int MPIDI_Win_attach(MPID_Win *win, void *base, MPI_Aint size)
{
MPIDI_FUNC_NOTIMPL(WIN_ATTACH)
}
#undef FUNCNAME
#define FUNCNAME MPIDI_Win_detach
#undef FCNAME
#define FCNAME MPIDI_QUOTE(FUNCNAME)
int MPIDI_Win_detach(MPID_Win *win, const void *base)
{
MPIDI_FUNC_NOTIMPL(WIN_DETACH)
}
#undef FUNCNAME
#define FUNCNAME MPIDI_Get_accumulate
#undef FCNAME
#define FCNAME MPIDI_QUOTE(FUNCNAME)
int MPIDI_Get_accumulate(const void *origin_addr, int origin_count,
MPI_Datatype origin_datatype, void *result_addr, int result_count,
MPI_Datatype result_datatype, int target_rank, MPI_Aint target_disp,
int target_count, MPI_Datatype target_datatype, MPI_Op op, MPID_Win *win)
{
MPIDI_FUNC_NOTIMPL(GET_ACCUMULATE)
}
#undef FUNCNAME
#define FUNCNAME MPIDI_Fetch_and_op
#undef FCNAME
#define FCNAME MPIDI_QUOTE(FUNCNAME)
int MPIDI_Fetch_and_op(const void *origin_addr, void *result_addr,
MPI_Datatype datatype, int target_rank, MPI_Aint target_disp,
MPI_Op op, MPID_Win *win)
{
MPIDI_FUNC_NOTIMPL(FETCH_AND_OP)
}
#undef FUNCNAME
#define FUNCNAME MPIDI_Compare_and_swap
#undef FCNAME
#define FCNAME MPIDI_QUOTE(FUNCNAME)
int MPIDI_Compare_and_swap(const void *origin_addr, const void *compare_addr,
void *result_addr, MPI_Datatype datatype, int target_rank,
MPI_Aint target_disp, MPID_Win *win)
{
MPIDI_FUNC_NOTIMPL(COMPARE_AND_SWAP)
}
#undef FUNCNAME
#define FUNCNAME MPIDI_Rget
#undef FCNAME
#define FCNAME MPIDI_QUOTE(FUNCNAME)
int MPIDI_Rput(const void *origin_addr, int origin_count,
MPI_Datatype origin_datatype, int target_rank, MPI_Aint target_disp,
int target_count, MPI_Datatype target_datatype, MPID_Win *win,
MPID_Request **request)
{
MPIDI_FUNC_NOTIMPL(RPUT)
}
#undef FUNCNAME
#define FUNCNAME MPIDI_Rget
#undef FCNAME
#define FCNAME MPIDI_QUOTE(FUNCNAME)
int MPIDI_Rget(void *origin_addr, int origin_count,
MPI_Datatype origin_datatype, int target_rank, MPI_Aint target_disp,
int target_count, MPI_Datatype target_datatype, MPID_Win *win,
MPID_Request **request)
{
MPIDI_FUNC_NOTIMPL(RGET)
}
#undef FUNCNAME
#define FUNCNAME MPIDI_Raccumulate
#undef FCNAME
#define FCNAME MPIDI_QUOTE(FUNCNAME)
int MPIDI_Raccumulate(const void *origin_addr, int origin_count,
MPI_Datatype origin_datatype, int target_rank, MPI_Aint target_disp,
int target_count, MPI_Datatype target_datatype, MPI_Op op, MPID_Win *win,
MPID_Request **request)
{
MPIDI_FUNC_NOTIMPL(RACCUMULATE)
}
#undef FUNCNAME
#define FUNCNAME MPIDI_Rget_accumulate
#undef FCNAME
#define FCNAME MPIDI_QUOTE(FUNCNAME)
int MPIDI_Rget_accumulate(const void *origin_addr, int origin_count,
MPI_Datatype origin_datatype, void *result_addr, int result_count,
MPI_Datatype result_datatype, int target_rank, MPI_Aint target_disp,
int target_count, MPI_Datatype target_datatype, MPI_Op op, MPID_Win *win,
MPID_Request **request)
{
MPIDI_FUNC_NOTIMPL(RGET_ACCUMULATE)
}
#undef FUNCNAME
#define FUNCNAME MPIDI_Win_flush
#undef FCNAME
#define FCNAME MPIDI_QUOTE(FUNCNAME)
int MPIDI_Win_flush(int rank, MPID_Win *win)
{
MPIDI_FUNC_NOTIMPL(WIN_FLUSH)
}
#undef FUNCNAME
#define FUNCNAME MPIDI_Win_flush_all
#undef FCNAME
#define FCNAME MPIDI_QUOTE(FUNCNAME)
int MPIDI_Win_flush_all(MPID_Win *win)
{
MPIDI_FUNC_NOTIMPL(WIN_FLUSH_ALL)
}
#undef FUNCNAME
#define FUNCNAME MPIDI_Win_flush_local
#undef FCNAME
#define FCNAME MPIDI_QUOTE(FUNCNAME)
int MPIDI_Win_flush_local(int rank, MPID_Win *win)
{
MPIDI_FUNC_NOTIMPL(WIN_FLUSH_LOCAL)
}
#undef FUNCNAME
#define FUNCNAME MPIDI_Win_flush_local_all
#undef FCNAME
#define FCNAME MPIDI_QUOTE(FUNCNAME)
int MPIDI_Win_flush_local_all(MPID_Win *win)
{
MPIDI_FUNC_NOTIMPL(WIN_FLUSH_LOCAL_ALL)
}
......@@ -11,21 +11,21 @@
/* Get ptr to RMAFns, which is embedded in MPID_Win */ \
MPIRI_RMAFns *ftable = &(*(win_ptr))->RMAFns; \
ftable->Win_free = MPIDI_Win_free; \
ftable->Win_attach = NULL; \
ftable->Win_detach = NULL; \
ftable->Win_attach = MPIDI_Win_attach; \
ftable->Win_detach = MPIDI_Win_detach; \
ftable->Win_shared_query = MPIDI_Win_shared_query; \
\
ftable->Put = MPIDI_Put; \
ftable->Get = MPIDI_Get; \
ftable->Accumulate = MPIDI_Accumulate; \
ftable->Get_accumulate = NULL; \
ftable->Fetch_and_op = NULL; \
ftable->Compare_and_swap = NULL; \
ftable->Get_accumulate = MPIDI_Get_accumulate; \
ftable->Fetch_and_op = MPIDI_Fetch_and_op; \
ftable->Compare_and_swap = MPIDI_Compare_and_swap; \
\
ftable->Rput = NULL; \
ftable->Rget = NULL; \
ftable->Raccumulate = NULL; \
ftable->Rget_accumulate = NULL; \
ftable->Rput = MPIDI_Rput; \
ftable->Rget = MPIDI_Rget; \
ftable->Raccumulate = MPIDI_Raccumulate; \
ftable->Rget_accumulate = MPIDI_Rget_accumulate; \
\
ftable->Win_fence = MPIDI_Win_fence; \
ftable->Win_post = MPIDI_Win_post; \
......@@ -39,10 +39,10 @@
ftable->Win_lock_all = MPIDI_Win_lock_all; \
ftable->Win_unlock_all = MPIDI_Win_unlock_all; \
\
ftable->Win_flush = NULL; \
ftable->Win_flush_all = NULL; \
ftable->Win_flush_local = NULL; \
ftable->Win_flush_local_all = NULL; \
ftable->Win_flush = MPIDI_Win_flush; \
ftable->Win_flush_all = MPIDI_Win_flush_all; \
ftable->Win_flush_local = MPIDI_Win_flush_local; \
ftable->Win_flush_local_all = MPIDI_Win_flush_local_all;\
ftable->Win_sync = MPIDI_Win_sync; \
} while (0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment