mdtest: print out informational output only once#531
Open
bertschinger wants to merge 1 commit intohpc:mainfrom
Open
mdtest: print out informational output only once#531bertschinger wants to merge 1 commit intohpc:mainfrom
bertschinger wants to merge 1 commit intohpc:mainfrom
Conversation
When informational output is printed about the arguments passed to
mdtest, previously every rank printed out the same messages. Duplicating
the same informational messages N times for N ranks isn't helpful for
the user.
This change makes it so that only rank 0 prints out informational
messages about the parameters.
Before:
$ mpirun -n 4 ./src/mdtest -d test_dir
WARNING: Read bytes is 0, thus, a read test will actually just open/close
WARNING: Read bytes is 0, thus, a read test will actually just open/close
WARNING: Read bytes is 0, thus, a read test will actually just open/close
-- started at 12/10/2025 10:15:46 --
mdtest-4.1.0+dev was launched with 4 total task(s) on 1 node(s)
Command line used: ./src/mdtest '-d' 'test_dir'
WARNING: Read bytes is 0, thus, a read test will actually just open/close
...
After:
$ mpirun -n 4 ./src/mdtest -d test_dir
-- started at 12/10/2025 10:13:29 --
mdtest-4.1.0+dev was launched with 4 total task(s) on 1 node(s)
Command line used: ./src/mdtest '-d' 'test_dir'
WARNING: Read bytes is 0, thus, a read test will actually just open/close
...
adilger
approved these changes
Dec 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When informational output is printed about the arguments passed to mdtest, previously every rank printed out the same messages. Duplicating the same informational messages N times for N ranks isn't helpful for the user.
This change makes it so that only rank 0 prints out informational messages about the parameters.
Before:
After: