Implement cusparse Descriptor class and clean up cusparse code#37389
Implement cusparse Descriptor class and clean up cusparse code#37389xwang233 wants to merge 9 commits intopytorch:masterfrom
Conversation
💊 Build failures summary and remediationsAs of commit bebc0dc (more details on the Dr. CI page):
ci.pytorch.org: 1 failedThis comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker. This comment has been revised 14 times. |
| #pragma once | ||
|
|
||
| // guard the whole file | ||
| #if !defined(_MSC_VER) && defined(__CUDACC__) && CUSPARSE_VERSION >= 10301 // CUDA release >= 10.2 and not windows |
There was a problem hiding this comment.
Shouldn't this be CUSPARSE_VERSION >= 10200 for v10.2?
There was a problem hiding this comment.
Hmm, not sure why, but I checked my header file and it's cusparse_version 10301 for my cuda 10.2.89. Also, there was a confirmed mismatch for cusparseSpMM on cuda 10.1
There was a problem hiding this comment.
Oh you're right. I have the same version of cuda and I see 10301 too.
kurtamohler
left a comment
There was a problem hiding this comment.
Nice work! BTW, I don't think the pr/py3.6-clang7-rocmdeb-ubuntu16.04 CI failure is caused by your changes, because I've seen the same thing in a different PR.
facebook-github-bot
left a comment
There was a problem hiding this comment.
@ezyang is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
…ch#37389) Summary: Add cusparse Descriptor class. Add cusparse Generic API wrapper. Clean up current cuda sparse code. Pull Request resolved: pytorch#37389 Differential Revision: D21302691 Pulled By: ezyang fbshipit-source-id: ecbb4063466c616eebfe681f1622724692be505c
…de (pytorch#37533) Summary: Reland of pytorch#37389. Fix for the cuda 10.1 CI failure. Pull Request resolved: pytorch#37533 Differential Revision: D21326386 Pulled By: ezyang fbshipit-source-id: f34875865c8bad76163995c18d88b0e76656bb22
Add cusparse Descriptor class. Add cusparse Generic API wrapper. Clean up current cuda sparse code.