2006-07-18 02:08:55 +04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2006-08-03 04:10:19 +04:00
|
|
|
#ifndef OMPI_MCA_OSC_RDMA_DATA_MOVE_H
|
|
|
|
#define OMPI_MCA_OSC_RDMA_DATA_MOVE_H
|
2006-07-18 02:08:55 +04:00
|
|
|
|
|
|
|
#include "osc_rdma_sendreq.h"
|
|
|
|
#include "osc_rdma_replyreq.h"
|
|
|
|
|
|
|
|
/* send a sendreq (the request from the origin for a Put, Get, or
|
|
|
|
Accumulate, including the payload for Put and Accumulate) */
|
|
|
|
int ompi_osc_rdma_sendreq_send(ompi_osc_rdma_module_t *module,
|
2007-07-06 01:40:06 +04:00
|
|
|
ompi_osc_rdma_sendreq_t *sendreq);
|
2006-07-18 02:08:55 +04:00
|
|
|
|
|
|
|
/* send a replyreq (the request from the target of a Get, with the
|
|
|
|
payload for the origin */
|
|
|
|
int ompi_osc_rdma_replyreq_send(ompi_osc_rdma_module_t *module,
|
2007-07-06 01:40:06 +04:00
|
|
|
ompi_osc_rdma_replyreq_t *replyreq);
|
2006-07-18 02:08:55 +04:00
|
|
|
|
|
|
|
/* receive the target side of a sendreq for a put, directly into the user's window */
|
|
|
|
int ompi_osc_rdma_sendreq_recv_put(ompi_osc_rdma_module_t *module,
|
2007-07-06 01:40:06 +04:00
|
|
|
ompi_osc_rdma_send_header_t *header,
|
|
|
|
void **payload);
|
2006-07-18 02:08:55 +04:00
|
|
|
|
|
|
|
/* receive the target side of a sendreq for an accumulate, possibly
|
|
|
|
using a temproart buffer, then calling the reduction functions */
|
|
|
|
int ompi_osc_rdma_sendreq_recv_accum(ompi_osc_rdma_module_t *module,
|
2007-07-06 01:40:06 +04:00
|
|
|
ompi_osc_rdma_send_header_t *header,
|
|
|
|
void **payload);
|
2006-07-18 02:08:55 +04:00
|
|
|
|
|
|
|
/* receive the origin side of a replyreq (the reply part of an
|
|
|
|
MPI_Get), directly into the user's window */
|
|
|
|
int ompi_osc_rdma_replyreq_recv(ompi_osc_rdma_module_t *module,
|
2007-07-06 01:40:06 +04:00
|
|
|
ompi_osc_rdma_sendreq_t *sendreq,
|
|
|
|
ompi_osc_rdma_reply_header_t *header,
|
|
|
|
void **payload);
|
2006-07-18 02:08:55 +04:00
|
|
|
|
|
|
|
int ompi_osc_rdma_control_send(ompi_osc_rdma_module_t *module,
|
2007-07-06 01:40:06 +04:00
|
|
|
ompi_proc_t *proc,
|
|
|
|
uint8_t type,
|
|
|
|
int32_t value0, int32_t value1);
|
2006-07-18 02:08:55 +04:00
|
|
|
|
2007-07-05 07:32:32 +04:00
|
|
|
int ompi_osc_rdma_rdma_ack_send(ompi_osc_rdma_module_t *module,
|
|
|
|
ompi_proc_t *proc,
|
|
|
|
ompi_osc_rdma_btl_t *rdma_btl);
|
|
|
|
|
2007-07-06 01:40:06 +04:00
|
|
|
int ompi_osc_rdma_flush(ompi_osc_rdma_module_t *module);
|
|
|
|
|
2006-07-18 02:08:55 +04:00
|
|
|
#endif
|