Open TouchDeeper opened 5 years ago
Add "#include <thrust/gather.h> header to on top of the file:
/flann/src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu
@akhalili I'm sorry for the late reply.
I have added the "#include <thrust/gather.h>" when I solved the problem2.
The error I can't fix occurred after I solve the problem2/
I have also encountered this problem.Have you solved the second problem?
@909452726 Sorry, I don't solve the second problem.
@TouchDeeper So sad, how did you compile it?
@909452726 I didn't compile it. I use PCL to do cluster instead.
It's probably not ideal. But I was able to get things to compile by adding __host__
to each of the places that were failing in flann/util/cuda/result_set.h. There are several that will need to be changed.
for example change:
__device__ RadiusKnnResultSet(DistanceType radius, int knn, int* segment_starts, bool sortResults) : foundNeighbors(0),largestHeapDist(radius),k(knn), sorted(sortResults), radius_sq_(radius),segment_starts_(segment_starts) { }
to:
__device__ __host__ RadiusKnnResultSet(DistanceType radius, int knn, int* segment_starts, bool sortResults) : foundNeighbors(0),largestHeapDist(radius),k(knn), sorted(sortResults), radius_sq_(radius),segment_starts_(segment_starts) { }
Hi, I want to build the Flann from source with Cuda on. Version of Cuda is 10.
error have been solved:
nvcc fatal : Value 'sm_13' is not defined for option 'gpu-architecture'
solve according this issue.flann/src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu(764): error: namespace "thrust" has no member "gather"
solve according this issuenew error:
Looking forward to the update for cuda10!