cub::UpperBound

Defined in cub/thread/thread_search.cuh

template<typename InputIteratorT, typename OffsetT, typename T>
OffsetT cub::UpperBound(InputIteratorT input, OffsetT num_items, T val)

Returns the offset of the first value within input which compares greater than val.

Parameters
  • input[in] Input sequence

  • num_items[in] Input sequence length

  • val[in] Search key