File: btl_ofi_rdma.h

package info (click to toggle)
openmpi 4.1.0-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 126,560 kB
  • sloc: ansic: 685,465; makefile: 42,952; f90: 19,220; sh: 7,002; java: 6,360; perl: 3,524; cpp: 2,227; python: 1,350; lex: 989; fortran: 61; tcl: 12
file content (42 lines) | stat: -rw-r--r-- 1,656 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
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
 * Copyright (c) 2014-2018 Los Alamos National Security, LLC. All rights
 *                         reserved.
 * Copyright (c) 2018      Intel, Inc, All rights reserved
 *
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 */

#ifndef BTL_OFI_RDMA_H
#define BTL_OFI_RDMA_H

#include "opal/threads/thread_usage.h"

#include "btl_ofi.h"
#include "btl_ofi_endpoint.h"

mca_btl_ofi_rdma_completion_t *mca_btl_ofi_rdma_completion_alloc (
                                         mca_btl_base_module_t *btl,
                                         mca_btl_base_endpoint_t *endpoint,
                                         mca_btl_ofi_context_t *ofi_context,
                                         void *local_address,
                                         mca_btl_base_registration_handle_t *local_handle,
                                         mca_btl_base_rdma_completion_fn_t cbfunc,
                                         void *cbcontext, void *cbdata,
                                         int type);

#define MCA_BTL_OFI_NUM_RDMA_INC(module)                                                \
            OPAL_THREAD_ADD_FETCH64(&(module)->outstanding_rdma, 1);                    \
            if (module->outstanding_rdma > mca_btl_ofi_component.progress_threshold){   \
                mca_btl_ofi_component.super.btl_progress();                             \
            }

#define MCA_BTL_OFI_NUM_RDMA_DEC(module)                            \
            OPAL_THREAD_ADD_FETCH64(&(module)->outstanding_rdma, -1);

#endif /* !defined(BTL_OFI_RDMA_H) */