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

Branch for update SCR Config default setup value #486

Merged
merged 2 commits into from
Mar 4, 2022

Conversation

hbchen1984
Copy link
Collaborator

Update scr_conf.h
Use new values for buffer size used on MPI and FILE IO

/* =========================================================================

  • Default buffer sizes for MPI and file I/O operations.
  • ========================================================================= */

/* buffer size to use for MPI send / recv operations /
#ifndef SCR_MPI_BUF_SIZE
/
#define SCR_MPI_BUF_SIZE (110241024) /
/
change from 128KB to 1MB /
#define SCR_MPI_BUF_SIZE (1024
1024) /* very strange that this lower number beats the upper one, but whatever ... */
#endif

/* buffer size to use for file I/O operations /
/
change from 1MB tp 32MB /
#ifndef SCR_FILE_BUF_SIZE
#define SCR_FILE_BUF_SIZE (1024
1024*32)
#endif

src/scr_conf.h Outdated
Comment on lines 146 to 147
/* #define SCR_MPI_BUF_SIZE (1*1024*1024) */
#define SCR_MPI_BUF_SIZE (128*1024) /* very strange that this lower number beats the upper one, but whatever ... */
#define SCR_MPI_BUF_SIZE (1024*1024) /* very strange that this lower number beats the upper one, but whatever ... */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @hbchen1984 . Since this number now matches the number that is commented out above, let's drop both of these comments -- the comment above and the comment at the end of this line.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. Thanks.

remove the original comment about SCR_MPI_BUF_SIZE
@adammoody adammoody merged commit 61253a7 into develop Mar 4, 2022
@adammoody adammoody deleted the scr_config_MPI_FILE branch March 4, 2022 18:30
@adammoody
Copy link
Contributor

Thanks, @hbchen1984 ! Nice find, and great idea to look for these and test them out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants