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

Use CUB version of CUB adjacent difference #1512

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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