summarylogtreecommitdiffstats
path: root/cuda13-gcc15-compat.patch
blob: 02216c023783209fa0578aa4252cd6a55248a3d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
diff --git a/cuda/common/include/pcl/cuda/time_gpu.h b/cuda/common/include/pcl/cuda/time_gpu.h
index 4457029c6..ae3793d14 100644
--- a/cuda/common/include/pcl/cuda/time_gpu.h
+++ b/cuda/common/include/pcl/cuda/time_gpu.h
@@ -37,6 +37,7 @@
 
 #pragma once
 
+#include <iostream>
 #include <cuda.h>
 #include <pcl/cuda/cutil_inline.h>
 
diff --git a/cuda/filters/include/pcl/cuda/filters/passthrough.h b/cuda/filters/include/pcl/cuda/filters/passthrough.h
index 51d1a6d40..416cbb2e8 100644
--- a/cuda/filters/include/pcl/cuda/filters/passthrough.h
+++ b/cuda/filters/include/pcl/cuda/filters/passthrough.h
@@ -35,6 +35,7 @@
 
 #pragma once
 
+#include <iostream>
 #include <pcl_cuda/filters/filter.h>
 #include <thrust/count.h>
 #include <thrust/remove.h>
diff --git a/cuda/filters/include/pcl/cuda/filters/voxel_grid.h b/cuda/filters/include/pcl/cuda/filters/voxel_grid.h
index f54b3a195..6146870b0 100644
--- a/cuda/filters/include/pcl/cuda/filters/voxel_grid.h
+++ b/cuda/filters/include/pcl/cuda/filters/voxel_grid.h
@@ -37,6 +37,7 @@
 
 PCL_DEPRECATED_HEADER(1, 16, "The CUDA VoxelGrid filter does not work. Use the CPU VoxelGrid filter instead.")
 
+#include <iostream>
 #include <pcl_cuda/filters/filter.h>
 #include <pcl_cuda/filters/passthrough.h>
 #include <thrust/count.h>
diff --git a/cuda/sample_consensus/src/msac.cpp b/cuda/sample_consensus/src/msac.cpp
index 397403c5d..4462f2616 100644
--- a/cuda/sample_consensus/src/msac.cpp
+++ b/cuda/sample_consensus/src/msac.cpp
@@ -35,6 +35,7 @@
  *
  */
 
+#include <iostream>
 #include <pcl_cuda/sample_consensus/multi_ransac.h>
 #include <pcl_cuda/time_gpu.h>
 #include <stdio.h>
diff --git a/cuda/sample_consensus/src/multi_ransac.cu b/cuda/sample_consensus/src/multi_ransac.cu
index 86d0a3fca..29b4d00db 100644
--- a/cuda/sample_consensus/src/multi_ransac.cu
+++ b/cuda/sample_consensus/src/multi_ransac.cu
@@ -35,6 +35,8 @@
  *
  */
 
+#include <iostream>
+
 #ifdef _WIN32
 # define NOMINMAX
 # define WIN32_LEAN_AND_MEAN
diff --git a/cuda/sample_consensus/src/ransac.cu b/cuda/sample_consensus/src/ransac.cu
index dd89f0411..50e1e8983 100644
--- a/cuda/sample_consensus/src/ransac.cu
+++ b/cuda/sample_consensus/src/ransac.cu
@@ -35,6 +35,8 @@
  *
  */
 
+#include <iostream>
+
 #ifdef _WIN32
 # define NOMINMAX
 # define WIN32_LEAN_AND_MEAN
diff --git a/cuda/sample_consensus/src/sac_model.cu b/cuda/sample_consensus/src/sac_model.cu
index 461e66f59..c8264d46f 100644
--- a/cuda/sample_consensus/src/sac_model.cu
+++ b/cuda/sample_consensus/src/sac_model.cu
@@ -39,6 +39,7 @@
 # define WIN32_LEAN_AND_MEAN
 #endif
 
+#include <iostream>
 #include <pcl/pcl_exports.h>
 
 #include "pcl/cuda/sample_consensus/sac_model.h"
diff --git a/cuda/sample_consensus/src/sac_model_1point_plane.cu b/cuda/sample_consensus/src/sac_model_1point_plane.cu
index 033de426a..8c2fb06eb 100644
--- a/cuda/sample_consensus/src/sac_model_1point_plane.cu
+++ b/cuda/sample_consensus/src/sac_model_1point_plane.cu
@@ -35,6 +35,7 @@
  *
  */
 
+#include <iostream>
 #include <pcl/pcl_exports.h>
 
 #include <pcl/cuda/sample_consensus/sac_model_1point_plane.h>
diff --git a/gpu/examples/segmentation/src/seg.cpp b/gpu/examples/segmentation/src/seg.cpp
index d49257f32..0cbcc864a 100644
--- a/gpu/examples/segmentation/src/seg.cpp
+++ b/gpu/examples/segmentation/src/seg.cpp
@@ -1,3 +1,4 @@
+#include <iostream>
 #include <pcl/ModelCoefficients.h>
 #include <pcl/point_types.h>
 #include <pcl/io/pcd_io.h>
diff --git a/gpu/surface/src/cuda/convex_hull.cu b/gpu/surface/src/cuda/convex_hull.cu
index 00b49dc08..d8f91044a 100644
--- a/gpu/surface/src/cuda/convex_hull.cu
+++ b/gpu/surface/src/cuda/convex_hull.cu
@@ -136,7 +136,7 @@ namespace pcl
       int transform_reduce_index(It beg, It end, Unary unop, Init init, Binary binary)
 	  {
 	    thrust::counting_iterator<int> cbeg(0);
-		thrust::counting_iterator<int> cend = cbeg + thrust::distance(beg, end);
+		thrust::counting_iterator<int> cend = cbeg + (end - beg);
 
 	    thrust::tuple<float, int> t = thrust::transform_reduce(
 		  thrust::make_zip_iterator(thrust::make_tuple(beg, cbeg)),