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

ci: run tests with and without PAPI debug enabled #129

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

gcongiu
Copy link
Contributor

@gcongiu gcongiu commented Dec 1, 2023

Pull Request Description

Tests should make sure real use cases work as expected. Some tests might not working correctly if -O0 is used as optimization level in the compiler. For example, the ROCm runtime submits a kernel of 4 waves if the tests are built using -O0, which makes the tests fail.

Author Checklist

  • Description
    Why this PR exists. Reference all relevant information, including background, issues, test failures, etc
  • Commits
    Commits are self contained and only do one thing
    Commits have a header of the form: module: short description
    Commits have a body (whenever relevant) containing a detailed description of the addressed problem and its solution
  • Tests
    The PR needs to pass all the tests

@gcongiu gcongiu requested a review from adanalis December 1, 2023 19:10
@gcongiu gcongiu added this to the PAPI 7.1.0 release milestone Dec 4, 2023
@gcongiu
Copy link
Contributor Author

gcongiu commented Dec 4, 2023

@G-Ragghianti the idea with this PR is to have PAPI tested with debug both on and off. I am not sure the way I have done things is the right though. Could you provide any feedback here? Thanks

@G-Ragghianti
Copy link
Contributor

I recommend against doing two builds within the same action because you need to make sure that the builds don't interfere with each other, when one fails, it will not run the other, and when there is a failure it isn't immediately clear which build caused the failure. I recommend that we modify main.yaml to include a new axis "debug" in the actions matrix (with values "no" and "yes"). Then the existing ci.sh can be modified to reference this variable in the configure step.

@gcongiu gcongiu changed the title ci: tests should be built without -O0 ci: run tests with and without PAPI debug enabled Dec 5, 2023
Tests should make sure real use cases work as expected. Some tests might
not working correctly if -O0 is used as optimization level in the
compiler. For example, the ROCm runtime submits a kernel of 4 waves if
the tests are built using -O0, which makes the tests fail.

Update the github test configuration matrix to include testing without
PAPI debug.
@gcongiu gcongiu merged commit 89d36cb into icl-utk-edu:master Dec 7, 2023
26 checks passed
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