diff --git a/samples/cpp/tutorial_code/gpu/gpu-thrust-interop/Thrust_interop.hpp b/samples/cpp/tutorial_code/gpu/gpu-thrust-interop/Thrust_interop.hpp index 46f1bc5485..92cdca0463 100644 --- a/samples/cpp/tutorial_code/gpu/gpu-thrust-interop/Thrust_interop.hpp +++ b/samples/cpp/tutorial_code/gpu/gpu-thrust-interop/Thrust_interop.hpp @@ -21,7 +21,7 @@ template struct step_functor : public thrust::unary_function::depth); columns = mat.cols; step = mat.step / sizeof(T); - channels = mat.channels(); + channels = mat.channels(); } __host__ __device__ int operator()(int x) const @@ -34,7 +34,7 @@ template struct step_functor : public thrust::unary_function, thrust::transform_iterator(0) + channel), thrust::make_transform_iterator(thrust::make_counting_iterator(mat.rows*mat.cols), step_functor(mat.cols, mat.step / sizeof(T), mat.channels()))); } -//! [end_itr] - - +//! [end_itr] \ No newline at end of file