Commit 4fa1fb22 authored by rusty1s's avatar rusty1s
Browse files

fix cuda bug

parent acd094e7
......@@ -18,9 +18,9 @@ __global__ void uniform_rw_kernel(
out[n] = start[n];
for (ptrdiff_t l = 1; l <= walk_length; l++) {
auto i = l * numel + n;
auto cur = out[(l - 1) * numel + n];
out[i] = col[row[cur] + int64_t(rand[i] * deg[cur])];
auto i = (l - 1) * numel + n;
auto cur = out[i];
out[l * numel + n] = col[row[cur] + int64_t(rand[i] * deg[cur])];
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment