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-03-17 21:45:16 +03:00
|
|
|
#include "mem/free_list.h"
|
|
|
|
#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-02-13 01:42:39 +03:00
|
|
|
extern lam_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,
|
|
|
|
MCA_PML_REQUEST_RECV
|
|
|
|
} 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-03-26 17:15:20 +03:00
|
|
|
lam_request_t super; /**< base request */
|
|
|
|
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 */
|
|
|
|
lam_communicator_t *req_comm; /**< communicator pointer */
|
|
|
|
lam_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-03-26 17:15:20 +03:00
|
|
|
lam_datatype_t *req_datatype; /**< pointer to data type */
|
|
|
|
mca_pml_base_request_type_t req_type; /**< MPI request type - used for test */
|
|
|
|
lam_status_public_t req_status; /**< completion status */
|
|
|
|
bool req_persistent; /**< flag indicating if the this is a persistent request */
|
|
|
|
volatile bool req_mpi_done; /**< flag indicating if MPI is done with this request */
|
|
|
|
volatile bool req_pml_done; /**< flag indicating if the pt-2-pt layer is done with this request */
|
|
|
|
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
|
|
|
|
|