flann-1.9.1-cuda-9.patch 850 B

1234567891011121314151617181920212223
  1. From b9dd074526c18e7423085853518b58d602cb0b57 Mon Sep 17 00:00:00 2001
  2. From: "Petr A. Ermolaev" <petr.a.ermolaev@gmail.com>
  3. Date: Fri, 4 May 2018 07:50:24 +0000
  4. Subject: [PATCH] fix compilation via gcc and cuda 9.1 add missing #include
  5. <thrust/gather> to kdtree_cuda_3d_index.cu
  6. ---
  7. src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu | 1 +
  8. 1 file changed, 1 insertion(+)
  9. diff --git a/src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu b/src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu
  10. index e9b05080..8465322e 100644
  11. --- a/src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu
  12. +++ b/src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu
  13. @@ -32,6 +32,7 @@
  14. #include <flann/util/cuda/result_set.h>
  15. // #define THRUST_DEBUG 1
  16. #include <cuda.h>
  17. +#include <thrust/gather.h>
  18. #include <thrust/copy.h>
  19. #include <thrust/device_vector.h>
  20. #include <vector_types.h>