Open Nyrio opened 1 year ago
Hello @Nyrio and thank you for reporting the issue! I can reproduce it on my side.
We require OffsetT
to be signed integer type, but CounterT
should be just integer type
. I don't think we currently test anything except CounterT=int
, so after fixing the algorithm for int64_t
we might need to add tests for other integer types as well.
As a workaround, you should be able to use unsigned long long int
instead of int64_t
.
Regarding this limitation of atomicAdd
, raft has a header with generic overloads, for long long int
it just reinterpret casts, since the underlying binary operation is the same.
But as I understand, the more modern approach would be to use cuda::atomic_ref
.
I am trying to use
cub::DeviceHistogram::HistogramEven
withCounterT=int64_t
and get the following error: