-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix index overflow in edge cases of CAGRA graph optimize (#435)
Force `input_graph_degree`, `output_graph_degree`, and `graph_size` variables to `uint64_t`. Before the PR, they've been `uint32_t`, and the product of them could overflow. This would lead to `cudaMemsetAsync` not filling in a large fraction of the graph. It's not known whether this bug has surfaced for anyone until now, but it's better to be safe than sorry. The change shouldn't have any impact on performance. Authors: - Artem M. Chirkin (https://github.com/achirkin) Approvers: - Micka (https://github.com/lowener) URL: #435
- Loading branch information
Showing
1 changed file
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters