Skip to content

Commit

Permalink
fix cuda bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Jul 27, 2019
1 parent acd094e commit 4fa1fb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cuda/rw_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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])];
}
}
}
Expand Down

0 comments on commit 4fa1fb2

Please sign in to comment.