2004-01-14 03:42:02 +00:00
|
|
|
/*
|
2005-11-05 19:57:48 +00:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2004-11-28 20:09:25 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 01:38:40 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-01-14 03:42:02 +00:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
2004-03-26 14:15:20 +00:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*/
|
2004-10-27 13:52:06 +00:00
|
|
|
#ifndef MCA_PTL_BASE_FRAGMENT_H
|
|
|
|
#define MCA_PTL_BASE_FRAGMENT_H
|
2004-01-14 03:42:02 +00:00
|
|
|
|
2005-07-03 16:22:16 +00:00
|
|
|
#include "opal/class/opal_list.h"
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "ompi/mca/pml/pml.h"
|
|
|
|
#include "ompi/mca/ptl/ptl.h"
|
|
|
|
#include "ompi/datatype/datatype.h"
|
|
|
|
#include "ompi/datatype/convertor.h"
|
|
|
|
#include "ompi/mca/ptl/base/ptl_base_header.h"
|
2004-01-14 03:42:02 +00:00
|
|
|
|
2004-10-20 22:31:03 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2004-10-27 13:52:06 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Type of fragment
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
MCA_PTL_FRAGMENT_SEND,
|
|
|
|
MCA_PTL_FRAGMENT_RECV
|
|
|
|
} mca_ptl_base_frag_type_t;
|
2004-01-14 03:42:02 +00:00
|
|
|
|
2004-03-26 14:15:20 +00:00
|
|
|
/**
|
|
|
|
* Base type for fragment descriptors.
|
|
|
|
*/
|
2004-01-14 03:42:02 +00:00
|
|
|
struct mca_ptl_base_frag_t {
|
2005-07-03 16:22:16 +00:00
|
|
|
opal_list_item_t super; /**< allow the fragment to be placed on a list */
|
2004-03-26 14:15:20 +00:00
|
|
|
mca_ptl_base_header_t frag_header; /**< header used for fragment matching */
|
2004-08-02 00:24:22 +00:00
|
|
|
struct mca_ptl_base_module_t* frag_owner; /**< PTL that allocated this fragment */
|
2004-02-05 00:50:37 +00:00
|
|
|
struct mca_ptl_base_peer_t* frag_peer; /**< PTL specific addressing info */
|
2004-03-26 14:15:20 +00:00
|
|
|
void *frag_addr; /**< pointer into request buffer at fragment offset */
|
|
|
|
size_t frag_size; /**< number of bytes available in request buffer */
|
2004-10-27 13:52:06 +00:00
|
|
|
mca_ptl_base_frag_type_t frag_type; /**< fragment derived type */
|
2004-06-07 15:33:53 +00:00
|
|
|
ompi_convertor_t frag_convertor; /**< datatype convertor for fragment packing/unpacking */
|
2004-01-14 03:42:02 +00:00
|
|
|
};
|
|
|
|
typedef struct mca_ptl_base_frag_t mca_ptl_base_frag_t;
|
|
|
|
|
2004-10-27 13:52:06 +00:00
|
|
|
OMPI_DECLSPEC OBJ_CLASS_DECLARATION(mca_ptl_base_frag_t);
|
|
|
|
|
2004-10-20 22:31:03 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
2004-01-14 03:42:02 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|