Best GPU algorithm for calculating lists of neighbours

不羁的心 提交于 2020-01-13 12:16:28

问题


Given a collection of thousands of points in 3D, I need to get the list of neighbours for each particle that fall inside some cutoff value (in terms of euclidean distance), and if possible, sorted from nearest fo farthest.

Which is the fastest GPU algorithm for this purpose in the CUDA or OpenCL languages?


回答1:


One of the fastest GPU MD codes I'm aware of, HALMD, uses a (highly tuned) version of the same sort of approach that is used in the CUDA SDK examples, "Particles". Both the HALMD paper and the Particles whitepaper are very clearly written. The underling algorithm is to assign particles into cutoff-radius-sized bins, do a radix sort based on that index, and then look at particles in the neighbouring bins.




回答2:


Fast k Nearest Neighbor Search using GPU

I haven't tested, used it, nothing. I just googled and posted the first link I found.



来源:https://stackoverflow.com/questions/6736072/best-gpu-algorithm-for-calculating-lists-of-neighbours

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!