Skip to content

Commit

Permalink
fix sampling handling of dscr region (#2321)
Browse files Browse the repository at this point in the history
Bug was discovered in how the sampling code is looking up DCSR offset.

Authors:
  - Chuck Hastings (https://github.com/ChuckHastings)

Approvers:
  - Brad Rees (https://github.com/BradReesWork)
  - Seunghwa Kang (https://github.com/seunghwak)

URL: #2321
  • Loading branch information
ChuckHastings authored Jun 1, 2022
1 parent 861cef0 commit 5d147ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/sampling/detail/sampling_utils_impl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ gather_local_edges(
auto row_hypersparse_idx =
partitions[partition_id].major_hypersparse_idx_from_major_nocheck(major);
if (row_hypersparse_idx) {
location_in_segment = *(row_hypersparse_idx)-id_begin[partition_id];
location_in_segment = *row_hypersparse_idx;
} else {
minors[index] = invalid_vertex_id;
return;
Expand Down

0 comments on commit 5d147ef

Please sign in to comment.