-
Notifications
You must be signed in to change notification settings - Fork 448
[REVIEW] Reverting change that removed unsigned
in dispatch_spmv_orig.cuh
#196
Conversation
This reverts commit b2e64cf.
Can you shed some light on what CUB calls are being made in cupy in this case? I'd like to add a regression test to prevent this in the future. |
Ping @cjnolet -- not sure if you saw my question above. |
Closing for lack of response -- feel free to reopen with more information as detailed above if you still need this. |
Hi @allisonvacanti Not sure if it could work this way: Could you reopen this PR and reassign to me so that I can take over and investigate when I have time? I can't promise a date but can put this in my queue 😁 Thanks! |
@leofang Works for me -- thanks! |
I am looking into this right now, so will bomb this thread later this afternoon. Looks like as of CUDA 11.2.0 the bug still exists, but is gone on the current master. Trying to figure out what fixed it... |
For some reason |
nvm, I was being silly 😅 |
Hi @allisonvacanti I am done with my checks. As @cjnolet pointed out, the first commit causing the spmv error is b2e64cf, and it seems to be fixed by your commit 63e2ad4 from #249 🎉 So looks like the fix will be included in CUDA 11.2.2 or CUDA 11.3, right? Please feel free to close this PR and the linked bug reports. FYI this is how I checked locally: with each
the test script is based on @cjnolet's reproducer from cupy/cupy#3822: # test_cub_csrmv_bug.py
import cupy
a = cupy.sparse.random(100, 100, format='csr', density=0.9)
cupy.core.set_routine_accelerators(['cub'])
print(a.T.dot(cupy.ones(a.shape[0])))
print(a.dot(cupy.ones(a.shape[1]))) The output arrays should not contain values of order |
Excellent news -- I love it when bugs accidentally fix themselves :D Thanks for checking into this, @leofang. |
To answer the question about releases, the cuda toolkit usually ships with a slightly old version of thrust/cub. This likely won't be included until 11.4, or possibly a 11.3.x update at the earliest. CTK 11.3 will include thrust/cub 1.11.0. |
Great, thanks for the info @allisonvacanti. Will discuss with the team for working around the bug. |
Closes #195
Closes #161