Skip to content

Commit 2fb5f55

Browse files
committed
osc/rdma: rearrange accumulate code
This commit rearranges the accumulate code so that network AMOs can be used in a larger number of potential situations. This commit adds a new MCA variable: osc_rdma_network_max_amo. This variable controls the maximum datatype count where AMOs will be used. The old default for this support was count == 1. The new default is count == 32. Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
1 parent 3ccf7e3 commit 2fb5f55

File tree

3 files changed

+307
-319
lines changed

3 files changed

+307
-319
lines changed

ompi/mca/osc/rdma/osc_rdma.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2012-2013 Sandia National Laboratories. All rights reserved.
1515
* Copyright (c) 2016-2018 Intel, Inc. All rights reserved.
16-
* Copyright (c) 2020 Google, LLC. All rights reserved.
16+
* Copyright (c) 2019 Triad National Security, LLC. All rights
17+
* reserved.
18+
* Copyright (c) 2020-2021 Google, LLC. All rights reserved.
1719
* $COPYRIGHT$
1820
*
1921
* Additional copyrights may follow
@@ -106,6 +108,9 @@ struct ompi_osc_rdma_component_t {
106108

107109
/** directory where to place backing files */
108110
char *backing_directory;
111+
112+
/** maximum count for network AMO usage */
113+
unsigned long network_amo_max_count;
109114
};
110115
typedef struct ompi_osc_rdma_component_t ompi_osc_rdma_component_t;
111116

@@ -160,6 +165,9 @@ struct ompi_osc_rdma_module_t {
160165
/** Local displacement unit. */
161166
int disp_unit;
162167

168+
/** maximum count for network AMO usage */
169+
unsigned long network_amo_max_count;
170+
163171
/** global leader */
164172
ompi_osc_rdma_peer_t *leader;
165173

0 commit comments

Comments
 (0)