-
Notifications
You must be signed in to change notification settings - Fork 5
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
Refactor Memory Access Iterators #75
Refactor Memory Access Iterators #75
Conversation
SimeonEhrig
commented
Jan 27, 2022
- Rename Iterator to Memory Access Strategy
- remove data member from iterator because:
- not necessary for functionality
- causes a bug on CPU backends with fancy iterators
- create unnecessary temporary objects
- harder to read
- harder to optimize for the compiler
- rename was necessary to avoid confusions with fancy iterator - rename and flat namespace of the mem access strategy - move related files to new folder
- now, the memory access strategy returns the index instead the actual data element
I wonder if Vikunja memory access could profit from LLAMA... |
For this PR, it is not interesting, because the current implementation of the memory access strategies requires 1D memory without padding. But in general, yes. I want to support also multidimensional memory #61 . I think |
- rename also folder hierarchy
After a discussion with @bernhardmgruber we find out, that As side not, |
- clean up of the test - prepare for addition iterator tests - add cmake helper function for tests - add memory allocation function for tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions:
b86b6fc
to
f3aaa68
Compare