Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA 11.0.1 / cuSPARSE 11.0.0 changed SpMM enums #2012

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions sparse/tpls/KokkosSparse_spmv_mv_tpl_spec_decl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,9 @@ void spmv_mv_cusparse(const Kokkos::Cuda &exec,
cusparseOperation_t opB =
xIsLL ? CUSPARSE_OPERATION_NON_TRANSPOSE : CUSPARSE_OPERATION_TRANSPOSE;

// CUSPARSE_MM_ALG_DEFAULT was deprecated as early as 11.1 (maybe earlier)
#if CUSPARSE_VERSION < 11010
// CUSPARSE_MM_ALG_DEFAULT was deprecated in CUDA 11.0.1 / cuSPARSE 11.0.0 and
// removed in CUDA 12.0.0 / cuSPARSE 12.0.0
#if CUSPARSE_VERSION < 11000
const cusparseSpMMAlg_t alg = CUSPARSE_MM_ALG_DEFAULT;
#else
const cusparseSpMMAlg_t alg = CUSPARSE_SPMM_ALG_DEFAULT;
Expand Down