Skip to content

Commit

Permalink
"Fix compilation issues in CUDA 9.1"
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRAgostinho committed Feb 13, 2018
1 parent ec03687 commit 23f4c49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cuda/features/include/pcl/cuda/features/normal_3d_kernels.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ namespace pcl
, sqr_radius_(sqr_radius)
, sqrt_desired_nr_neighbors_ (sqrt_desired_nr_neighbors)
{}

template <typename Tuple>
inline __host__ __device__
float4 operator () (Tuple &t)
float4 operator () (const Tuple &t)
{
float3 query_pt = thrust::get<0>(t);
float4 normal = thrust::get<1>(t);
Expand All @@ -190,7 +190,7 @@ namespace pcl
(centroid.z - query_pt.z) / sqrt(sqr_radius_) ,
0);
}

const PointXYZRGB *points_;
float focallength_;
OrganizedRadiusSearch<CloudConstPtr> search_;
Expand Down

0 comments on commit 23f4c49

Please sign in to comment.