tests/unit: add bigput_sweep large-buffer put correctness test#58
Draft
bcmIntc wants to merge 1 commit into
Draft
tests/unit: add bigput_sweep large-buffer put correctness test#58bcmIntc wants to merge 1 commit into
bcmIntc wants to merge 1 commit into
Conversation
bigput_sweep sweeps successive chunks of a large symmetric allocation to (my_pe+1) % npes, then verifies all elements match the expected pattern. Unlike bigput, which repeatedly puts to the same fixed buffer, bigput_sweep exercises a large portion of the symmetric heap across many put operations. Supports -t (total elements), -c (chunk size), -l (loops), -v (verbose). Each PE prints its hostname and PE number at startup. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Summary
Adds
bigput_sweep, a new unit test that verifies correctness ofshmem_int_putacross a large symmetric heap allocation.Unlike the existing
bigputtest — which repeatedly puts to the same fixed buffer —bigput_sweepdivides a large symmetric allocation into chunks and puts each chunk to the corresponding offset on(my_pe+1) % npes, sweeping the full buffer. After all transfers complete, every element is verified against the expected pattern.What it tests:
Options:
-t \<N\>— total elements per PE (default 32M ints = 128 MB)-c \<N\>— elements per put/chunk (default 256K ints = 1 MB)-l \<N\>— number of sweep repetitions (default 1)-v— verbose: shows MB/sec and per-PE verification resultSupports
k/m/gsuffixes on all size arguments. Each PE prints its hostname and PE number at startup for easy identification in multi-node runs.