Skip to content

Commit

Permalink
CUDA 11.0.1 / cuSPARSE 11.0.0 changed SpMM enums
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Oct 23, 2023
1 parent 549f6e1 commit 6790651
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 6790651

Please sign in to comment.