by mmozeiko · 4y ago · 0 comments
I would expect the linked code is just intended as a quick poc, so it does not bother to be optimal.
(Overlapping is indeed cool where it works - idempotent operations.)
Roughly speaking, while you do need idempotence for reductions, you do not need it for maps. (Of course, plenty of things don't look quite like reductions or maps--or they look like both at once--and each is unique.)
Only for "classical" SIMD, ARM SVE2 show a way to solve this issue cleanly. Not sure where you can use SVE2 though..