From c45663a8a2e71d74629282716a0483f4f99ee799 Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Tue, 25 Feb 2025 16:05:25 +0100 Subject: [PATCH] Change examples to use libcu++ --- thrust/examples/expand.cu | 2 +- thrust/examples/repeated_range.cu | 2 +- thrust/examples/strided_range.cu | 2 +- thrust/examples/tiled_range.cu | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/thrust/examples/expand.cu b/thrust/examples/expand.cu index 350ec1d4099..f27c37d68a5 100644 --- a/thrust/examples/expand.cu +++ b/thrust/examples/expand.cu @@ -20,7 +20,7 @@ template OutputIterator expand(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, OutputIterator output) { - using difference_type = thrust::detail::it_difference_t; + using difference_type = typename cuda::std::iterator_traits::difference_type; difference_type input_size = thrust::distance(first1, last1); difference_type output_size = thrust::reduce(first1, last1); diff --git a/thrust/examples/repeated_range.cu b/thrust/examples/repeated_range.cu index debd13c58f9..e454d987314 100644 --- a/thrust/examples/repeated_range.cu +++ b/thrust/examples/repeated_range.cu @@ -21,7 +21,7 @@ template class repeated_range { public: - using difference_type = thrust::detail::it_difference_t; + using difference_type = typename cuda::std::iterator_traits::difference_type; struct repeat_functor { diff --git a/thrust/examples/strided_range.cu b/thrust/examples/strided_range.cu index dbdbac82d62..7389e1f0ae3 100644 --- a/thrust/examples/strided_range.cu +++ b/thrust/examples/strided_range.cu @@ -21,7 +21,7 @@ template class strided_range { public: - using difference_type = thrust::detail::it_difference_t; + using difference_type = typename cuda::std::iterator_traits::difference_type; struct stride_functor { diff --git a/thrust/examples/tiled_range.cu b/thrust/examples/tiled_range.cu index 220591dc8f5..7f67a409cb4 100644 --- a/thrust/examples/tiled_range.cu +++ b/thrust/examples/tiled_range.cu @@ -21,7 +21,7 @@ template class tiled_range { public: - using difference_type = thrust::detail::it_difference_t; + using difference_type = typename cuda::std::iterator_traits::difference_type; struct tile_functor {