norlab-ulaval / libnabo

A fast K Nearest Neighbor library for low-dimensional spaces

Home Page:http://norlab-ulaval.github.io/libnabo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is OpenCL support finished?

dawnos opened this issue · comments

NearestNeighbourSearch has two version of knn:
virtual unsigned long knn(const Matrix& query, IndexMatrix& indices, Matrix& dists2, const Index k = 1, const T epsilon = 0, const unsigned optionFlags = 0, const T maxRadius = std::numeric_limits<T>::infinity()) const = 0;
and
virtual unsigned long knn(const Matrix& query, IndexMatrix& indices, Matrix& dists2, const Vector& maxRadii, const Index k = 1, const T epsilon = 0, const unsigned optionFlags = 0) const = 0;

But it seem that OpenCL version only implemented the first one. It leads that I even can not compile the example file examples/trival.cpp.

OpenCL support is not finished, because based on experiments (in early 2011), the performance was lower than with CPU, due to a very bad use of GPU's ALU in my implementation. It would be interesting to test again with modern GPUs.