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

Express an array index reordering as mapping #691

Open
bernhardmgruber opened this issue Jan 26, 2023 · 0 comments
Open

Express an array index reordering as mapping #691

bernhardmgruber opened this issue Jan 26, 2023 · 0 comments

Comments

@bernhardmgruber
Copy link
Member

For the LHCB analysis example, presorting the dataset gives a speedup. As an alternative, we could also define this permutation inside a dedicated mapping using extra memory to store an index table. LLAMA should be powerful enough to express this. It would be interesting though to see the effect on the runtime.

My guess: it will probably be worse than the unsorted dataset. The indexing introduces an extra indirection, so more memory needs to be loaded and data access now requires an indirection in-between inhibiting prefetching. Furthermore, since the actually needed data is not grouped together into hot and cold parts, cacheline utilization will stay low.

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

No branches or pull requests

1 participant