File: btl_portals_send.h

package info (click to toggle)
openmpi 1.1-2.3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 39,124 kB
  • ctags: 22,534
  • sloc: ansic: 216,698; sh: 22,541; makefile: 6,921; cpp: 5,562; asm: 3,160; lex: 375; objc: 365; perl: 347; csh: 89; tcl: 12; f90: 5
file content (42 lines) | stat: -rw-r--r-- 2,070 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * 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.
 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, 
 *                         University of Stuttgart.  All rights reserved.
 * Copyright (c) 2004-2005 The Regents of the University of California.
 *                         All rights reserved.
 * $COPYRIGHT$
 * 
 * Additional copyrights may follow
 * 
 * $HEADER$
 */

#ifndef OMPI_BTL_PORTALS_SEND_H
#define OMPI_BTL_PORTALS_SEND_H

#include "btl_portals_frag.h"


#define MCA_BTL_PORTALS_PROGRESS_QUEUED_SENDS() \
    if ((0 != opal_list_get_size(&(mca_btl_portals_module.portals_queued_sends))) && \
        (mca_btl_portals_module.portals_outstanding_ops <                            \
         mca_btl_portals_module.portals_max_outstanding_ops)) {                      \
        mca_btl_portals_frag_t *qfrag = (mca_btl_portals_frag_t*)                    \
            opal_list_remove_first(&(mca_btl_portals_module.portals_queued_sends));  \
        OPAL_OUTPUT_VERBOSE((90, mca_btl_portals_component.portals_output,           \
                             "retransmit for frag 0x%x, 0x%x",                       \
                             qfrag, qfrag->base.des_cbfunc));                        \
        return mca_btl_portals_send(&mca_btl_portals_module.super,                   \
                                    qfrag->endpoint,                                 \
                                    &(qfrag->base),                                  \
                                    qfrag->hdr.tag);                                 \
    }                                                                                \
    return OMPI_SUCCESS;


#endif /* OMPI_BTL_PORTALS_SEND_H */