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

PAPI Pi5 Support #260

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

PAPI Pi5 Support #260

wants to merge 2 commits into from

Conversation

willowec
Copy link
Contributor

Pull Request Description

Add preset events for the Arm Cortex-A76, which is the processor used in the Raspberry Pi 5.

Additionally, add raw assembly versions of the load/store validation tests for ARM as the previous approach of estimating the amount of load/store instructions the compiler will generate for a matrix multiplication operation was providing false errors. This PR only has testcode for ARM, and in cases when there is no assembly testcode available the load/store validation tests still default to using the matrix multiplication method.

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

The previous load/store validation tests were being optimized by
the compiler in a way that caused the tests to mispredict the
amount of memory instructions that are generated. This made it
appear like the counters were incorrect, when it was really the
test being inaccurate.

To fix this, add assembly testcode for ARM to eliminate the
problem of compiler optimizations. When load/store testcode
is unavailable for the current platform, default back to the
original matrix multiplication test.
@willowec willowec changed the title PAPI Pi5 support PAPI Pi5 Support Oct 11, 2024
@Treece-Burgess Treece-Burgess added the update-presets PRs related to updating the PAPI presets label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
update-presets PRs related to updating the PAPI presets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants