knnsearch(trainingset, testingset, 'K', neighborsvalue) on GPU matlab using parallel processing
2 次查看(过去 30 天)
显示 更早的评论
how to apply knnsearch builtin function of searching the neighbors in GPU using parallel processing , having problem in knnsearch function with Cuda.
0 个评论
采纳的回答
Joss Knight
2017-1-12
arrayfun is for applying a scalar operation element-wise across an array. You should not be using it to wrap knnsearch. Just call knnsearch with your gpuArray inputs.
See help gpuArray\knnsearch.
3 个评论
Hao Zhang
2018-12-13
But it seems the GPU version of knnsearch only support brute force method, for large data set, it is slower than the CPU version with kdtree algorithm.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GPU Computing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!