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

Locality optimisations for multicore backend #1695

Open
athas opened this issue Jul 2, 2022 · 0 comments
Open

Locality optimisations for multicore backend #1695

athas opened this issue Jul 2, 2022 · 0 comments
Labels

Comments

@athas
Copy link
Member

athas commented Jul 2, 2022

The multicore (and C) backends will sometimes generate inefficient code where arrays are sequentially traversed with a stride. This is obviously bad. I think a good solution would be to do something similar to the "kernel babysitter" used by the GPU pipelines, where we analyse traversal patterns and transpose the arrays in advance such that the eventual traversal will be optimal. This is not as good as tiling, but it is very general.

@athas athas added optimisation compiler student-viable Viable as a student project labels Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant