Skip to content

Commit

Permalink
Change examples to use libcu++
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Feb 25, 2025
1 parent 7e427c3 commit a71e67d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion thrust/examples/expand.cu
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
template <typename InputIterator1, typename InputIterator2, typename OutputIterator>
OutputIterator expand(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, OutputIterator output)
{
using difference_type = thrust::detail::it_difference_t<InputIterator1>;
using difference_type = typename cuda::std::iterator_traits<InputIterator1>::difference;

difference_type input_size = thrust::distance(first1, last1);
difference_type output_size = thrust::reduce(first1, last1);
Expand Down
2 changes: 1 addition & 1 deletion thrust/examples/repeated_range.cu
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ template <typename Iterator>
class repeated_range
{
public:
using difference_type = thrust::detail::it_difference_t<Iterator>;
using difference_type = typename cuda::std::iterator_traits<Iterator>::difference;

struct repeat_functor
{
Expand Down
2 changes: 1 addition & 1 deletion thrust/examples/strided_range.cu
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ template <typename Iterator>
class strided_range
{
public:
using difference_type = thrust::detail::it_difference_t<Iterator>;
using difference_type = typename cuda::std::iterator_traits<Iterator>::difference;

struct stride_functor
{
Expand Down
2 changes: 1 addition & 1 deletion thrust/examples/tiled_range.cu
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ template <typename Iterator>
class tiled_range
{
public:
using difference_type = thrust::detail::it_difference_t<Iterator>;
using difference_type = typename cuda::std::iterator_traits<Iterator>::difference;

struct tile_functor
{
Expand Down

0 comments on commit a71e67d

Please sign in to comment.