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

Runtime optimization of kernels #1200

Open
pgrete opened this issue Oct 29, 2024 · 0 comments
Open

Runtime optimization of kernels #1200

pgrete opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@pgrete
Copy link
Collaborator

pgrete commented Oct 29, 2024

Based on our experience during last weeks hackathon, Kokkos::AUTO for the team_size in hierarchical kernel may not yield optimal performance (with variation up to 20% depending on block size and problem size).

So I'm wondering if we could add a runtime optimization, for example, by adding a par_for_tune abstraction that would translate to running the same kernel with various team and vector sizes, measure the runtime, and storing the best version for future iterations.
Of course this would work only for kernels that do not modify the "input" data.

We should also check to which degree this can be done with or how this compares to kokkos auto tuning, see, e.g., https://indico.math.cnrs.fr/event/12037/attachments/5040/8156/KokkosTutorial_07_Tools.pdf and https://www.olcf.ornl.gov/wp-content/uploads/2021/06/ToolsTutorialOLCF.pptx.pdf

@pgrete pgrete added the enhancement New feature or request label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant