Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1512 from senior-zero/main-feature/github/use_cub…
Browse files Browse the repository at this point in the history
…_adjacent_difference

Use CUB version of CUB adjacent difference
  • Loading branch information
alliepiper authored May 9, 2022
2 parents fbe8370 + 37c05e7 commit 698c2f6
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 376 deletions.
6 changes: 6 additions & 0 deletions testing/cuda/adjacent_difference.cu
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ DECLARE_UNITTEST(TestAdjacentDifferenceCudaStreams);

struct detect_wrong_difference
{
using difference_type = void;
using value_type = void;
using pointer = void;
using reference = void;
using iterator_category = std::output_iterator_tag;

bool * flag;

__host__ __device__ detect_wrong_difference operator++() const { return *this; }
Expand Down
Loading

0 comments on commit 698c2f6

Please sign in to comment.