Skip to content

Commit 635d578

Browse files
committed
OMPIO: Add info keys to file's info object in File_set_view
Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu> (cherry picked from commit 664891f)
1 parent 016b0e9 commit 635d578

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ompi/mca/common/ompio/common_ompio_file_view.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ int mca_common_ompio_set_view (ompio_file_t *fh,
233233
opal_info_get (info, "cb_nodes", &stripe_str, &flag);
234234
if ( flag ) {
235235
sscanf ( stripe_str->string, "%d", &num_cb_nodes );
236+
/* add the key/value to the file's info object */
237+
opal_info_set_cstring(fh->f_info, "cb_nodes", stripe_str);
236238
OMPIO_MCA_PRINT_INFO(fh, "cb_nodes", stripe_str->string, "");
237239
OBJ_RELEASE(stripe_str);
238240
}
@@ -343,6 +345,8 @@ int mca_common_ompio_set_view (ompio_file_t *fh,
343345
} else {
344346
OMPIO_MCA_PRINT_INFO(fh, "collective_buffering", stripe_str->string, "");
345347
}
348+
/* add the key/value to the file's info object */
349+
opal_info_set_cstring(fh->f_info, "collective_buffering", stripe_str);
346350
OBJ_RELEASE(stripe_str);
347351
}
348352
}

0 commit comments

Comments
 (0)