Commit c8cb5e5
Relax cusparse windows guard on cuda 11 (#42412)
Summary:
Fixes #42406
### cusparse Xcsrmm2 API:
(#37202)
- new: https://docs.nvidia.com/cuda/cusparse/index.html#cusparse-generic-function-spmm
- old (deprecated in cuda 11): https://docs.nvidia.com/cuda/archive/10.2/cusparse/index.html#csrmm2
Before:
|cuda ver | windows | linux |
|--|--|--|
| 10.1 | old api | old api |
| 10.2 | old api | new api |
| 11 | old api (build error claimed in #42406) | new api |
After:
|cuda ver | windows | linux |
|--|--|--|
| 10.1 | old api | old api |
| 10.2 | old api | **old api** |
| 11 | **new api** | new api |
### cusparse bmm-sparse-dense API
<details><summary>reverted, will be revisited in the future</summary>
(cc kurtamohler #33430)
- new: https://docs.nvidia.com/cuda/cusparse/index.html#cusparse-generic-function-spmm
Before:
|cuda ver | windows | linux |
|--|--|--|
| 10.1 | not supported | new api |
| 10.2 | not supported | new api |
| 11 | not supported | new api |
After:
|cuda ver | windows | linux |
|--|--|--|
| 10.1 | not supported | new api |
| 10.2 | not supported | new api |
| 11 | **new api** | new api |
</details>
Pull Request resolved: #42412
Reviewed By: agolynski
Differential Revision: D22892032
Pulled By: ezyang
fbshipit-source-id: cded614af970f0efdc79c74e18e1d9ea8a46d0121 parent 24199e0 commit c8cb5e5
1 file changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 16 | + | |
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
| |||
81 | 76 | | |
82 | 77 | | |
83 | 78 | | |
84 | | - | |
| 79 | + | |
85 | 80 | | |
86 | 81 | | |
87 | 82 | | |
| |||
0 commit comments