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

KokkosLapack_svd_tpl_spec_decl: disambiguate lapack vs mkl tpl #2170

Closed
wants to merge 1 commit into from
Closed
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
10 changes: 9 additions & 1 deletion lapack/tpls/KokkosLapack_svd_tpl_spec_decl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ void lapackSvdWrapper(const ExecutionSpace& /* space */, const char jobu[],
}
}

constexpr bool svd_tpl_lapack_enable() {
#ifdef KOKKOSKERNELS_ENABLE_TPL_MKL
return false;
#else
return true;
#endif
}

#define KOKKOSLAPACK_SVD_LAPACK(SCALAR, LAYOUT, EXEC_SPACE) \
template <> \
struct SVD< \
Expand All @@ -125,7 +133,7 @@ void lapackSvdWrapper(const ExecutionSpace& /* space */, const char jobu[],
Kokkos::View<SCALAR**, LAYOUT, \
Kokkos::Device<EXEC_SPACE, Kokkos::HostSpace>, \
Kokkos::MemoryTraits<Kokkos::Unmanaged>>, \
true, \
svd_tpl_lapack_enable(), \
svd_eti_spec_avail< \
EXEC_SPACE, \
Kokkos::View<SCALAR**, LAYOUT, \
Expand Down