2004-09-03 21:04:25 +00:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MCA_PTL_SM_RECV_FRAG_H
|
|
|
|
#define MCA_PTL_SM_RECV_FRAG_H
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include "include/sys/atomic.h"
|
|
|
|
#include "mca/ptl/ptl.h"
|
|
|
|
#include "mca/ptl/base/ptl_base_recvfrag.h"
|
|
|
|
#include "ptl_sm.h"
|
|
|
|
|
|
|
|
|
|
|
|
OBJ_CLASS_DECLARATION(mca_ptl_sm_frag_t);
|
|
|
|
|
2004-09-13 15:24:34 +00:00
|
|
|
OBJ_CLASS_DECLARATION(mca_ptl_sm_second_frag_t);
|
|
|
|
|
2004-09-03 21:04:25 +00:00
|
|
|
|
|
|
|
/**
|
2004-09-13 15:24:34 +00:00
|
|
|
* shared memory received fragment derived type - because of
|
|
|
|
* the way lists are initialized in Open MPI, this is good
|
|
|
|
* only for the first fragment.
|
2004-09-03 21:04:25 +00:00
|
|
|
*/
|
|
|
|
struct mca_ptl_sm_frag_t {
|
|
|
|
mca_ptl_base_recv_frag_t super; /**< base receive fragment descriptor */
|
2004-09-03 22:34:52 +00:00
|
|
|
size_t buff_length; /**< size of buffer */
|
2004-10-18 23:24:53 +00:00
|
|
|
int queue_index; /**< local process index, cached for fast
|
|
|
|
acking */
|
2004-09-03 22:34:52 +00:00
|
|
|
void *buff; /**< pointer to buffer */
|
2004-09-16 15:40:24 +00:00
|
|
|
void *buff_offset_from_segment_base; /**< pointer to buffer,
|
|
|
|
relative to base of the
|
|
|
|
shared memory segment */
|
2004-09-03 21:04:25 +00:00
|
|
|
};
|
|
|
|
typedef struct mca_ptl_sm_frag_t mca_ptl_sm_frag_t;
|
|
|
|
|
2004-09-13 15:24:34 +00:00
|
|
|
/**
|
|
|
|
* shared memory received fragment derived type - because of
|
|
|
|
* the way lists are initialized in Open MPI, this is good
|
|
|
|
* only for the second and beyond fragments.
|
|
|
|
*/
|
|
|
|
typedef struct mca_ptl_sm_frag_t mca_ptl_sm_second_frag_t;
|
|
|
|
|
2004-09-03 21:04:25 +00:00
|
|
|
#endif
|
|
|
|
|