Commit d40ff056 authored by Kenneth Raffenetti's avatar Kenneth Raffenetti
Browse files

portals4: remove dead code


Signed-off-by: default avatarAntonio Pena Monferrer <apenya@mcs.anl.gov>
parent ebbaad2b
......@@ -121,99 +121,6 @@ static int handler_large(const ptl_event_t *e)
goto fn_exit;
}
#if 0
#undef FUNCNAME
#define FUNCNAME handler_pack_chunk
#undef FCNAME
#define FCNAME MPIU_QUOTE(FUNCNAME)
static int handler_pack_chunk(const ptl_event_t *e)
{
int mpi_errno = MPI_SUCCESS;
MPID_Request *const sreq = e->user_ptr;
MPIDI_STATE_DECL(MPID_STATE_HANDLER_PACK_CHUNK);
MPIDI_FUNC_ENTER(MPID_STATE_HANDLER_PACK_CHUNK);
MPIU_Assert(e->type == PTL_EVENT_GET || e->type == PTL_EVENT_PUT);
if (e->type == PTL_EVENT_PUT) {
mpi_errno = handler_send_complete(e);
if (mpi_errno) MPIU_ERR_POP(mpi_errno);
goto fn_exit;
}
/* pack next chunk */
MPI_nem_ptl_pack_byte(sreq->dev.segment_ptr, sreq->dev.segment_first, sreq->dev.segment_first + PTL_LARGE_THRESHOLD,
REQ_PTL(sreq_)->chunk_buffer[1], &REQ_PTL(sreq)->overflow[1]);
sreq->dev.segment_first += PTL_LARGE_THRESHOLD;
/* notify receiver */
ret = MPID_nem_ptl_rptl_put(MPIDI_nem_ptl_global_md, 0, 0, PTL_ACK_REQ, vc_ptl->id,
vc_ptl->pt, ?????, 0, sreq,
NPTL_HEADER(?????, MPIDI_Process.my_pg_rank, me.match_bits));
fn_exit:
MPIDI_FUNC_EXIT(MPID_STATE_HANDLER_PACK_CHUNK);
return mpi_errno;
fn_fail:
goto fn_exit;
}
#undef FUNCNAME
#define FUNCNAME handler_multi_put
#undef FCNAME
#define FCNAME MPIU_QUOTE(FUNCNAME)
static int handler_multi_put(const ptl_event_t *e)
{
int mpi_errno = MPI_SUCCESS;
MPID_Request *const sreq = e->user_ptr;
MPIDI_STATE_DECL(MPID_STATE_HANDLER_MULTI_PUT);
MPIDI_FUNC_ENTER(MPID_STATE_HANDLER_MULTI_PUT);
fn_exit:
MPIDI_FUNC_EXIT(MPID_STATE_HANDLER_MULTI_PUT);
return mpi_errno;
fn_fail:
goto fn_exit;
}
#undef FUNCNAME
#define FUNCNAME handler_large_multi
#undef FCNAME
#define FCNAME MPIU_QUOTE(FUNCNAME)
static int handler_large_multi(const ptl_event_t *e)
{
int mpi_errno = MPI_SUCCESS;
MPID_Request *const sreq = e->user_ptr;
MPIDI_STATE_DECL(MPID_STATE_HANDLER_LARGE_MULTI);
MPIU_Assert(e->type == PTL_EVENT_ACK);
MPIDI_FUNC_ENTER(MPID_STATE_HANDLER_LARGE_MULTI);
if (e->mlength < PTL_LARGE_THRESHOLD) {
/* truncated message */
mpi_errno = handler_send_complete(e);
if (mpi_errno) MPIU_ERR_POP(mpi_errno);
} else {
REQ_PTL(sreq)->event_handler = handler_pack_chunk;
}
fn_exit:
MPIDI_FUNC_EXIT(MPID_STATE_HANDLER_LARGE_MULTI);
return mpi_errno;
fn_fail:
goto fn_exit;
}
#endif
/* Send message for either isend or issend */
#undef FUNCNAME
#define FUNCNAME send_msg
......
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