2004-01-09 22:20:50 +03:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
2004-03-26 17:15:20 +03:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*/
|
2004-01-09 22:20:50 +03:00
|
|
|
#ifndef MCA_PML_BASE_REQUEST_H
|
|
|
|
#define MCA_PML_BASE_REQUEST_H
|
|
|
|
|
2004-06-15 23:07:45 +04:00
|
|
|
#include "class/ompi_free_list.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "request/request.h"
|
|
|
|
#include "datatype/datatype.h"
|
|
|
|
#include "communicator/communicator.h"
|
2004-03-31 21:00:38 +04:00
|
|
|
#include "mca/ptl/ptl.h"
|
2004-01-09 22:20:50 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
extern ompi_class_t mca_pml_base_request_t_class;
|
2004-01-09 22:20:50 +03:00
|
|
|
|
2004-03-26 17:15:20 +03:00
|
|
|
/**
|
|
|
|
* Type of request.
|
|
|
|
*/
|
2004-01-12 22:17:09 +03:00
|
|
|
typedef enum {
|
2004-03-17 00:56:19 +03:00
|
|
|
MCA_PML_REQUEST_NULL,
|
2004-01-12 22:17:09 +03:00
|
|
|
MCA_PML_REQUEST_SEND,
|
2004-06-09 23:45:08 +04:00
|
|
|
MCA_PML_REQUEST_RECV,
|
|
|
|
MCA_PML_REQUEST_IPROBE,
|
|
|
|
MCA_PML_REQUEST_PROBE
|
2004-01-12 22:17:09 +03:00
|
|
|
} mca_pml_base_request_type_t;
|
|
|
|
|
|
|
|
|
2004-03-26 17:15:20 +03:00
|
|
|
/**
|
|
|
|
* Base type for PML P2P requests
|
|
|
|
*/
|
2004-03-12 01:02:01 +03:00
|
|
|
struct mca_pml_base_request_t {
|
2004-07-15 22:08:20 +04:00
|
|
|
ompi_request_t req_ompi; /**< base request */
|
2004-03-26 17:15:20 +03:00
|
|
|
void *req_addr; /**< pointer to application buffer */
|
|
|
|
size_t req_count; /**< count of user datatype elements */
|
|
|
|
int32_t req_peer; /**< peer process - rank w/in this communicator */
|
|
|
|
int32_t req_tag; /**< user defined tag */
|
2004-07-15 22:08:20 +04:00
|
|
|
ompi_communicator_t *req_comm; /**< communicator pointer */
|
|
|
|
ompi_proc_t* req_proc; /**< peer process */
|
2004-04-12 19:39:15 +04:00
|
|
|
mca_ptl_sequence_t req_sequence; /**< sequence number for MPI pt-2-pt ordering */
|
2004-07-15 22:08:20 +04:00
|
|
|
ompi_datatype_t *req_datatype; /**< pointer to data type */
|
2004-03-26 17:15:20 +03:00
|
|
|
mca_pml_base_request_type_t req_type; /**< MPI request type - used for test */
|
|
|
|
bool req_persistent; /**< flag indicating if the this is a persistent request */
|
2004-10-12 19:50:01 +04:00
|
|
|
volatile bool req_pml_complete; /**< flag indicating if the pt-2-pt layer is done with this request */
|
2004-03-26 17:15:20 +03:00
|
|
|
volatile bool req_free_called; /**< flag indicating if the user has freed this request */
|
2004-03-12 01:02:01 +03:00
|
|
|
};
|
|
|
|
typedef struct mca_pml_base_request_t mca_pml_base_request_t;
|
2004-01-09 22:20:50 +03:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|