MATLAB: Knnsearch(trainingset, testingset, ‘K’, neighborsvalue) on GPU matlab using parallel processing

#matlab #parallel #gpu #knnsearchParallel Computing ToolboxStatistics and Machine Learning Toolbox

how to apply knnsearch builtin function of searching the neighbors in GPU using parallel processing , having problem in knnsearch function with Cuda.

Best Answer

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.
Related Question