01e8fc5f91
Move the req_mtl structure back to the end of each of the structures in the CM PML. The req_mtl structure is cast into a mtl_*_request_structure for each MTL, which is larger than the req_mtl itself. The cast will cause the *_request to overwrite parts of the heavy requests if the req_mtl isn't the *LAST* thing on each structure (hence the comment). This was moved as an optimization at some point, which caused buffer sends to fail... Refs trac:669 This commit was SVN r12873. The following SVN revision numbers were found above: r12871 --> open-mpi/ompi@597598b712 The following Trac tickets were found above: Ticket 669 --> https://svn.open-mpi.org/trac/ompi/ticket/669
54 строки
1.9 KiB
C
54 строки
1.9 KiB
C
/*
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
* University Research and Technology
|
|
* Corporation. All rights reserved.
|
|
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
|
* of Tennessee Research Foundation. All rights
|
|
* reserved.
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
* University of Stuttgart. All rights reserved.
|
|
* Copyright (c) 2004-2006 The Regents of the University of California.
|
|
* All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#ifndef PML_CM_REQUEST_H
|
|
#define PML_CM_REQUEST_H
|
|
|
|
#include "ompi/mca/pml/base/pml_base_sendreq.h"
|
|
#include "ompi/mca/pml/base/pml_base_bsend.h"
|
|
#include "ompi/mca/pml/pml.h"
|
|
#include "ompi/mca/mtl/mtl.h"
|
|
|
|
/**
|
|
* Type of request.
|
|
*/
|
|
typedef enum {
|
|
MCA_PML_CM_REQUEST_SEND_HEAVY,
|
|
MCA_PML_CM_REQUEST_SEND_THIN,
|
|
MCA_PML_CM_REQUEST_RECV_HEAVY,
|
|
MCA_PML_CM_REQUEST_RECV_THIN,
|
|
MCA_PML_CM_REQUEST_NULL
|
|
} mca_pml_cm_request_type_t;
|
|
|
|
/**
|
|
* Base type for PML CM P2P requests
|
|
*/
|
|
struct mca_pml_cm_request_t {
|
|
ompi_request_t req_ompi; /**< base request */
|
|
volatile bool req_pml_complete; /**< 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 */
|
|
mca_pml_cm_request_type_t req_pml_type;
|
|
struct ompi_communicator_t *req_comm; /**< communicator pointer */
|
|
struct ompi_datatype_t *req_datatype; /**< pointer to data type */
|
|
ompi_convertor_t req_convertor; /**< always need the convertor */
|
|
};
|
|
typedef struct mca_pml_cm_request_t mca_pml_cm_request_t;
|
|
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(mca_pml_cm_request_t);
|
|
|
|
#endif
|