Open dawnos opened 7 years ago
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.
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;
andvirtual 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
.