Skip to content

misc: fixes and cleanups found during multi-testing - #5742

Merged
hzhou merged 6 commits into
pmodels:mainfrom
hzhou:2112_test_misc
Jan 6, 2022
Merged

hzhou merged 6 commits into
pmodels:mainfrom
hzhou:2112_test_misc

Conversation

@hzhou

@hzhou hzhou commented Dec 23, 2021 •

Copy link
Copy Markdown
Collaborator

Pull Request Description

Split misc fixes and cleanups from #5725.
Fixes in ch4//release_gather, maint/extractcvars, test/mpi/coll/op_coll.c, test//coll_cvars.txt, and in testlist syntax.

[skip warnings]

Author Checklist

  • Provide Description
    Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
  • Commits Follow Good Practice
    Commits are self-contained and do not do two things at once.
    Commit message is of the form: module: short description
    Commit message explains what's in the commit.
  • Passes All Tests
    Whitespace checker. Warnings test. Additional tests via comments.
  • Contribution Agreement
    For non-Argonne authors, check contribution agreement.
    If necessary, request an explicit comment from your companies PR approval manager.

@hzhou

hzhou commented Dec 23, 2021

Copy link
Copy Markdown
Collaborator Author

test:mpich/ch4/ofi

@raffenet raffenet left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me. Just one minor question.

MPI_Aint lb, true_lb, true_extent, extent, type_size;
void *ori_buffer = buffer;
MPI_Datatype ori_datatype = datatype;
int cellsize = MPIDI_POSIX_RELEASE_GATHER_BCAST_CELLSIZE;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is moving this setting later necessary? Unclear to me how this affects the behavior.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It is not "necessary", but for readability. cellsize is only used in MPIR_Algo_calculate_pipeline_chunk_info and the reason we need this variable is due to the exception under #ifdef HAVE_ERROR_CHECKING. So move them closer makes the code easier to read. I can split this change if you prefer.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I have split the commits.

@hzhou

hzhou commented Jan 6, 2022 •

Copy link
Copy Markdown
Collaborator Author

test:mpich/ch4/ofi ✔️

hzhou added 6 commits January 6, 2022 17:19
Because we initialize the release_gather structure once for each comm,
we need make sure the parameters are consistent throughout the comm
lifetime. CVARs may get updated during runtime. Thus we need initialize
and transfer the CVARs into per-comm setting at init time.
It was missing the newline in the output.
There are multiple tests and assertions in op_coll.c. Add line number
in its assertion output so we can locate the failing test.
mpiversion option is not implemented in runtests. Simply add macro guard
in the test code. This is consistent with other tests that require
certain minimum MPI versions.

TODO: The test should print some message, e.g. Skipped due to version
requirement, so that the test report can reflect it.
@hzhou
hzhou merged commit a92ce59 into pmodels:main Jan 6, 2022
@hzhou
hzhou deleted the 2112_test_misc branch November 27, 2024 14:40
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