Skip to content

Commit

Permalink
BLAS - gemv: using fallback when mode is 't' or 'c' and onemkl is used (
Browse files Browse the repository at this point in the history
  • Loading branch information
lucbv authored Jul 10, 2024
1 parent e1cd832 commit ea430c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blas/src/KokkosBlas2_gemv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,11 @@ void gemv(const ExecutionSpace& space, const char trans[],
#ifdef KOKKOSKERNELS_ENABLE_TPL_MKL
#ifdef KOKKOS_ENABLE_SYCL
// oneMKL supports both row-major and column-major of A
// but only supports oneapi::mkl::transpose::nontrans op
useFallback =
useFallback || !std::is_same_v<typename AViewType::memory_space,
Kokkos::Experimental::SYCLDeviceUSMSpace>;
useFallback || ((tolower(*trans) == 't' || tolower(*trans) == 'c') &&
std::is_same_v<typename AViewType::memory_space,
Kokkos::Experimental::SYCLDeviceUSMSpace>);
#endif
#endif

Expand Down

0 comments on commit ea430c3

Please sign in to comment.