Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix in the R-mat generator #1929

Merged
merged 1 commit into from
Nov 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cpp/src/generators/generate_rmat_edgelist.cu
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ std::tuple<rmm::device_uvector<vertex_t>, rmm::device_uvector<vertex_t>> generat
c_norm = (1.0 - (a + b)) > 0.0 ? c / (1.0 - (a + b)) : 0.0] __device__(auto i) {
vertex_t src{0};
vertex_t dst{0};
for (size_t bit = scale - 1; bit != 0; --bit) {
for (int bit = static_cast<int>(scale) - 1; bit >= 0; --bit) {
auto r0 = rands[i * 2 * scale + 2 * bit];
auto r1 = rands[i * 2 * scale + 2 * bit + 1];
auto src_bit_set = r0 > a_plus_b;
Expand Down