Re:Smart Algorithms beat Hardware Acceleration for Large-Sca...
by l33tman on Friday March 06, 2020 @12:18PM
(#22505353)
Yeah on the GPU you need to get your threads to ideally load consecutive memory locations for each thread to utilize the memory bandwidth properly. Random-indexing blows this out of the water. I guess that you could pre-process on the CPU though to pack the sparse stuff for better GPU efficiency..
Re:Smart Algorithms beat Hardware Acceleration for Large-Sca...
by vchak1 on Friday March 06, 2020 @01:42PM
(#22506088)
You can solve around this by using cuckoo or robin hood hashing. See for example: https://www.researchgate.net/scientific-contributions/148064...
CPUs, by contrast, have a thorough caching hierarchy that tends to focus on minimizing memory latency, so it doesn't take as long to do the second load compared to a GPU.