Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix integer overflow in ANN kmeans (#835)
CUDA block and thread indices are uint32, so the following operation results in an overflow before being cast to uint64: ```cuda uint64_t gid = threadIdx.x + (blockDim.x * blockIdx.x); ``` This PR fixes the error that @tfeher and myself have encountered while benchmarking large datasets: ``` Incorrect mesocluster size at 0. 625618 vs 625858 ``` cc @achirkin Authors: - Louis Sugy (https://github.com/Nyrio) Approvers: - Tamas Bela Feher (https://github.com/tfeher) URL: #835
- Loading branch information