Skip to content

Return indices rather than iterator from cub::DeviceFind::LowerBound/UpperBound #7258

@shwina

Description

@shwina

See #7250

The cub::DeviceFind::Lower/UpperBound APIs follow C++ standard library semantics, returning an iterator representing the lower/upper bound positions, rather than indices. However, the vectorized versions of thrust::lower_bound and thrust::upper_bound return indices, not iterators.

For parity with Thrust, the CUB APIs should either be changed to return indices, or an overload provided that return indices.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions