Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix: set hint nc_ibuf_size based on user's info #161

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/drivers/ncmpio/ncmpio_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ void ncmpio_set_pnetcdf_hints(NC *ncp,
}
MPI_Info_set(info_used, "nc_in_place_swap", value);

ncp->ibuf_size = PNC_DEFAULT_IBUF_SIZE;
if (user_info != MPI_INFO_NULL) {
/* temporal buffer size used to pack noncontiguous aggregated user
* buffers when calling ncmpi_wait/wait_all, Default 16 MiB
Expand All @@ -147,7 +146,7 @@ void ncmpio_set_pnetcdf_hints(NC *ncp,
MPI_Offset ibuf_size;
errno = 0; /* errno must set to zero before calling strtoll */
ibuf_size = strtoll(value, NULL, 10);
if (errno == 0 && ncp->ibuf_size > 0) ncp->ibuf_size = ibuf_size;
if (errno == 0 && ibuf_size > 0) ncp->ibuf_size = ibuf_size;
}
}
sprintf(value, "%lld", ncp->ibuf_size);
Expand Down
Loading