Skip to content

Commit

Permalink
Fix __shfl_down cuda error
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Kassym committed Nov 1, 2019
1 parent 869e473 commit e950645
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class RNNTLoss(Loss):
From the repo test with:

```bash
python test/test.py 10 300 100 50 --mx
python test/test.py --mx
```

## Reference
Expand Down
2 changes: 1 addition & 1 deletion rnnt_include/detail/reduce.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct CTAReduce {

T shuff;
for (int offset = warp_size / 2; offset > 0; offset /= 2) {
shuff = __shfl_down(x, offset);
shuff = __shfl_down_sync(0xFFFFFFFF, x, offset);
if (tid + offset < count && tid < offset)
x = g(x, shuff);
}
Expand Down

0 comments on commit e950645

Please sign in to comment.