~james-page/ubuntu/precise/openmpi1.5/new

« back to all changes in this revision

Viewing changes to ompi/mca/pml/csum/pml_csum_rdmafrag.h

  • Committer: Bazaar Package Importer
  • Author(s): Manuel Prinz
  • Date: 2009-04-23 14:01:21 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090423140121-vsi3pqa6g30j4qiy
Tags: 1.3.2-1
* New upstream release. (Closes: #520597, #515116)
  - Manpage and VampirTrace patches removed, included upstream.
* Fixed build issues on Alpha. Huge thanks to Arthur Loiret for providing
  access to his machines for testing! (Closes: #510845, #517543)
* Fixed build issues on Sparc. (Closes: #519725)
* Fixed manpage-has-errors-from-man lintian warnings.
* Faked SONAME change by renaming library package. (Closes: #512616)
* Made libopenmpi-dev depend on libibverbs-dev. (Closes: #522153)
* Support for "nocheck" build option in debian/rules.
* Updated Standards-Version in debian/control.
* Changed section of libopenmpi-dbg to "debug".
* Updated debian/copyright.

* Dirk Eddelbuettel removed himself from Uploaders. The team thanks Dirk
  for his long-term contribution and effort to get Open MPI back to life.
  I personally thank Dirk for encouraging me to become a Debian Developer
  and his support and mentoring on that way and beyond.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
 
3
 *                         University Research and Technology
 
4
 *                         Corporation.  All rights reserved.
 
5
 * Copyright (c) 2004-2006 The University of Tennessee and The University
 
6
 *                         of Tennessee Research Foundation.  All rights
 
7
 *                         reserved.
 
8
 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, 
 
9
 *                         University of Stuttgart.  All rights reserved.
 
10
 * Copyright (c) 2004-2005 The Regents of the University of California.
 
11
 *                         All rights reserved.
 
12
 * $COPYRIGHT$
 
13
 * 
 
14
 * Additional copyrights may follow
 
15
 * 
 
16
 * $HEADER$
 
17
 */
 
18
/**
 
19
 *  @file
 
20
 */
 
21
                                                                                                                                                 
 
22
#ifndef MCA_PML_CSUM_RDMAFRAG_H
 
23
#define MCA_PML_CSUM_RDMAFRAG_H
 
24
 
 
25
#include "ompi/mca/btl/btl.h"
 
26
#include "pml_csum_hdr.h"
 
27
 
 
28
BEGIN_C_DECLS
 
29
 
 
30
typedef enum {
 
31
    MCA_PML_CSUM_RDMA_PUT,
 
32
    MCA_PML_CSUM_RDMA_GET
 
33
} mca_pml_csum_rdma_state_t;
 
34
 
 
35
struct mca_pml_csum_rdma_frag_t {
 
36
    ompi_free_list_item_t super;
 
37
    mca_bml_base_btl_t* rdma_bml;
 
38
    mca_pml_csum_hdr_t rdma_hdr;
 
39
    mca_pml_csum_rdma_state_t rdma_state;
 
40
    size_t rdma_length;
 
41
    mca_btl_base_segment_t rdma_segs[MCA_BTL_DES_MAX_SEGMENTS];
 
42
    void *rdma_req;
 
43
    struct mca_bml_base_endpoint_t* rdma_ep;
 
44
    ompi_convertor_t convertor;
 
45
    mca_mpool_base_registration_t* reg;
 
46
    uint32_t retries;
 
47
};
 
48
typedef struct mca_pml_csum_rdma_frag_t mca_pml_csum_rdma_frag_t;
 
49
 
 
50
OBJ_CLASS_DECLARATION(mca_pml_csum_rdma_frag_t);
 
51
 
 
52
 
 
53
#define MCA_PML_CSUM_RDMA_FRAG_ALLOC(frag,rc)                    \
 
54
do {                                                            \
 
55
    ompi_free_list_item_t* item;                                \
 
56
    OMPI_FREE_LIST_WAIT(&mca_pml_csum.rdma_frags, item, rc);     \
 
57
    frag = (mca_pml_csum_rdma_frag_t*)item;                      \
 
58
} while(0)
 
59
 
 
60
#define MCA_PML_CSUM_RDMA_FRAG_RETURN(frag)                      \
 
61
do {                                                            \
 
62
    /* return fragment */                                       \
 
63
    OMPI_FREE_LIST_RETURN(&mca_pml_csum.rdma_frags,              \
 
64
        (ompi_free_list_item_t*)frag);                          \
 
65
} while(0)
 
66
 
 
67
 
 
68
END_C_DECLS
 
69
 
 
70
#endif
 
71