Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 15c629e

Browse files
committed
ompio: correctly handle zero f_cc_size in mca_io_ompio_simple_grouping
(cherry picked from commit open-mpi/ompi@59a361b)
1 parent 9f3e104 commit 15c629e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/io/ompio/io_ompio_file_set_view.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ int mca_io_ompio_simple_grouping(mca_io_ompio_file_t *fh,
323323
stripe_size = OMPIO_DEFAULT_STRIPE_SIZE;
324324
}
325325

326-
if ( stripe_size > fh->f_cc_size ) {
326+
if ( 0 != fh->f_cc_size && stripe_size > fh->f_cc_size ) {
327327
group_size = (((int)stripe_size/(int)fh->f_cc_size) > fh->f_size ) ? fh->f_size : ((int)stripe_size/(int)fh->f_cc_size);
328328
*num_groups = fh->f_size / group_size;
329329
}

0 commit comments

Comments
 (0)