2004-09-03 21:04:25 +00:00
|
|
|
/*
|
2004-11-22 01:38:40 +00:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
* 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-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"
|
|
|
|
|
|
|
|
|
2004-10-20 22:31:03 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2004-09-03 21:04:25 +00:00
|
|
|
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-10-25 18:02:46 +00:00
|
|
|
struct mca_ptl_base_module_t* send_ptl; /**< PTL that is selected for first fragment */
|
2005-05-09 19:37:10 +00:00
|
|
|
struct mca_ptl_base_send_request_t* send_req;
|
2004-11-17 22:47:08 +00:00
|
|
|
size_t send_offset;
|
2004-09-03 22:34:52 +00:00
|
|
|
void *buff; /**< pointer to buffer */
|
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-10-20 22:31:03 +00:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
2004-09-13 15:24:34 +00:00
|
|
|
|
2004-09-03 21:04:25 +00:00
|
|
|
#endif
|
|
|
|
|