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

Lapack - SVD: adding quick return when cuSOLVER is skipped #2107

Merged
merged 1 commit into from
Feb 14, 2024
Merged
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
5 changes: 2 additions & 3 deletions lapack/unit_test/Test_Lapack_svd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,6 @@ int impl_test_svd(const int m, const int n) {
using vector_type =
Kokkos::View<mag_type*, typename AMatrix::array_layout, Device>;

std::cout << "Running impl_test_svd with sizes: " << m << "x" << n
<< std::endl;

const mag_type max_val = 10;
const mag_type tol = 1000 * max_val * KAT_S::eps();

Expand All @@ -499,6 +496,8 @@ int impl_test_svd(const int m, const int n) {
Kokkos::Cuda>) {
if (m >= n) {
KokkosLapack::svd("A", "A", A, S, U, Vt);
} else {
return 0;
}
} else {
KokkosLapack::svd("A", "A", A, S, U, Vt);
Expand Down
Loading