Skip to content

Commit

Permalink
Add guard for cusparse spmv_mv_tpl_spec_avail
Browse files Browse the repository at this point in the history
Address issue kokkos#2175
Configuring with magma tpl enabled and cusparse disabled mistakenly triggers the cusparse tpl avail check to be true
Guard the KOKKOSSPARSE_SPMV_MV_TPL_SPEC_AVAIL_CUSPARSE macros when CUSPARSE is enabled to prevent this
  • Loading branch information
ndellingwood committed Apr 12, 2024
1 parent f09977f commit 53ac9d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sparse/tpls/KokkosSparse_spmv_mv_tpl_spec_avail.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ struct spmv_mv_tpl_spec_avail {
enum : bool { value = false };
};

#ifdef KOKKOSKERNELS_ENABLE_TPL_CUSPARSE
#define KOKKOSSPARSE_SPMV_MV_TPL_SPEC_AVAIL_CUSPARSE(SCALAR, ORDINAL, OFFSET, \
XL, YL, MEMSPACE) \
template <> \
Expand Down Expand Up @@ -152,6 +153,7 @@ KOKKOSSPARSE_SPMV_MV_TPL_SPEC_AVAIL_CUSPARSE(Kokkos::Experimental::half_t, int,

#endif
#endif // defined(CUSPARSE_VERSION) && (10300 <= CUSPARSE_VERSION)
#endif

} // namespace Impl
} // namespace KokkosSparse
Expand Down

0 comments on commit 53ac9d4

Please sign in to comment.