Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rnd bit generation in rmat_rectangular_kernel (#2524)
For certain architectures, the compiler always generates zero destination bit in the following loop https://github.com/rapidsai/raft/blob/ee45ce786686b54d1972408b927d7fcd8ce0cf20/cpp/include/raft/random/detail/rmat_rectangular_generator.cuh#L160-L162 irrespective of the random value that shall determine which bit to use for `dst_id`. This PR refactors the loop. This way the `dst_id` number has the desired random distribution for all bits. Authors: - Tamas Bela Feher (https://github.com/tfeher) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: #2524
- Loading branch information