Skip to content

Support a custom comparison predicate in cub::DeviceReduce::ArgMin|Max. #6123

@bernhardmgruber

Description

@bernhardmgruber

This will be needede to port thrust/extrema.h (e.g. thrust::min_element) to cub::DeviceReduce.

This will require that we come up with a different way to reduce without initial element. The current initial element is determined using ::cuda::std::numeric_limits which only works for small set of types and only if the comparison predicate is <. This is only needed for empty problems (zero elements).

Metadata

Metadata

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