From 6790651e376db6ea2a98860f775a0c6c3befd67d Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Mon, 23 Oct 2023 13:07:53 -0600 Subject: [PATCH] CUDA 11.0.1 / cuSPARSE 11.0.0 changed SpMM enums --- sparse/tpls/KokkosSparse_spmv_mv_tpl_spec_decl.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sparse/tpls/KokkosSparse_spmv_mv_tpl_spec_decl.hpp b/sparse/tpls/KokkosSparse_spmv_mv_tpl_spec_decl.hpp index 30e0b6e243..f28e04e26b 100644 --- a/sparse/tpls/KokkosSparse_spmv_mv_tpl_spec_decl.hpp +++ b/sparse/tpls/KokkosSparse_spmv_mv_tpl_spec_decl.hpp @@ -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;