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

build: Move benchmark generation to test/mpi/autogen.sh #7167

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

raffenet
Copy link
Contributor

@raffenet raffenet commented Oct 8, 2024

Pull Request Description

These are only needed by the testsuite.

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.

export PERL5LIB=$MYDEF_BOOT/lib/perl5
export MYDEFLIB=$MYDEF_BOOT/lib/MyDef
(cd bench && ./autogen.sh)
}
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -78,6 +86,9 @@ if test ! -e include/mtest_mpix.h ; then
touch include/mtest_mpix.h
fi

# Create the benchmark tests
create_benchmarks
Copy link
Contributor

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"?

Copy link
Contributor Author

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.
@raffenet
Copy link
Contributor Author

test:mpich/ch4/most

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