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
b86b6fc to
f3aaa68
Compare