Azzera filtri
Azzera filtri

knnsearch(trainingset, testingset, 'K', neighborsvalue) on GPU matlab using parallel processing

2 visualizzazioni (ultimi 30 giorni)
how to apply knnsearch builtin function of searching the neighbors in GPU using parallel processing , having problem in knnsearch function with Cuda.

Risposta accettata

Joss Knight
Joss Knight il 12 Gen 2017
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 Commenti
Hao Zhang
Hao Zhang il 13 Dic 2018
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.

Accedi per commentare.

Più risposte (1)

KSSV
KSSV il 11 Gen 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by