-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make cuSparse TPL available for Bsrmatrix SpMV
The Kokkos::spmv function was improperly using template parameters to select the native vs TPL version. A common thread of erros was to assume the 3rd-to-last template parameter was for TPL availablility, when it was not. There were also further errors in inverting the logic on that parameter. We also remove LayoutRight for the BsrMatrix SpMV, as it is not supported by the underlying cuSparse function. for X,Y LayoutLeft we want cuSparse to do C = A * B + C and for X,Y LayoutRight we want cuSparse to do trans(C) = A * trans(B) + trans(C) -> t(t(C)) = t(A * t(B)) + t(t(C)) -> C = t(t(B)) * t(A) + C -> C = B * t(A) + C That is not possible with the current cuSparse level 3 functions.
- Loading branch information
Showing
3 changed files
with
80 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters