Skip to content

Commit 40d94fd

Browse files
authored
Merge pull request #2422 from edgargabriel/pr/cycle-buf-default-val
io/ompio: change the default value of mca parameter
2 parents 144a9d2 + 26e9210 commit 40d94fd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ompi/mca/io/ompio/io_ompio.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ OMPI_DECLSPEC extern int mca_io_ompio_coll_timing_info;
7272
* General values
7373
*/
7474
#define OMPIO_PREALLOC_MAX_BUF_SIZE 33554432
75+
#define OMPIO_DEFAULT_CYCLE_BUF_SIZE 536870912
7576
#define OMPIO_PERM_NULL -1
7677
#define OMPIO_IOVEC_INITIAL_SIZE 100
7778
#define OMPIO_ROOT 0

ompi/mca/io/ompio/io_ompio_component.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "ompi/mca/io/io.h"
3232
#include "io_ompio.h"
3333

34-
int mca_io_ompio_cycle_buffer_size = -1;
34+
int mca_io_ompio_cycle_buffer_size = OMPIO_DEFAULT_CYCLE_BUF_SIZE;
3535
int mca_io_ompio_bytes_per_agg = OMPIO_PREALLOC_MAX_BUF_SIZE;
3636
int mca_io_ompio_num_aggregators = -1;
3737
int mca_io_ompio_record_offset_info = 0;
@@ -165,7 +165,7 @@ static int register_component(void)
165165
MCA_BASE_VAR_SCOPE_READONLY,
166166
&mca_io_ompio_coll_timing_info);
167167

168-
mca_io_ompio_cycle_buffer_size = -1;
168+
mca_io_ompio_cycle_buffer_size = OMPIO_DEFAULT_CYCLE_BUF_SIZE;
169169
(void) mca_base_component_var_register(&mca_io_ompio_component.io_version,
170170
"cycle_buffer_size",
171171
"Data size issued by individual reads/writes per call",

0 commit comments

Comments
 (0)