-
Notifications
You must be signed in to change notification settings - Fork 280
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
build: Move benchmark generation to test/mpi/autogen.sh #7167
base: main
Are you sure you want to change the base?
Conversation
export PERL5LIB=$MYDEF_BOOT/lib/perl5 | ||
export MYDEFLIB=$MYDEF_BOOT/lib/MyDef | ||
(cd bench && ./autogen.sh) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The concern is that the user may only download the testsuite tarball and this make the autogen broken. How about protecting it with -
if test -d `$MYDEF_BOOT` ; then
export PATH=$MYDEF_BOOT/bin:$PATH
export PERL5LIB=$MYDEF_BOOT/lib/perl5
export MYDEFLIB=$MYDEF_BOOT/lib/MyDef
fi
MyDef is essentially a dependency. User (like me) always can install MyDef in his system then autogen.sh
will always work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
test/mpi/autogen.sh
Outdated
@@ -78,6 +86,9 @@ if test ! -e include/mtest_mpix.h ; then | |||
touch include/mtest_mpix.h | |||
fi | |||
|
|||
# Create the benchmark tests | |||
create_benchmarks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about rename it to "generate_benchmarks"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
These are only needed by the testsuite. If mydef is unavailable for some reason, e.g. running autogen.sh from a testsuite-only tarball, regeneration of the benchmarks will be skipped.
test:mpich/ch4/most |
Pull Request Description
These are only needed by the testsuite.
Author Checklist
Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
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.
Whitespace checker. Warnings test. Additional tests via comments.
For non-Argonne authors, check contribution agreement.
If necessary, request an explicit comment from your companies PR approval manager.