Skip to content

Commit

Permalink
[tests][LAPACK] Avoid cuSOLVER bug in *trd tests (uxlfoundation#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
sknepper authored Jun 4, 2024
1 parent 577a279 commit 231aee3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/unit_tests/lapack/source/hetrd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
namespace {

const char* accuracy_input = R"(
0 33 35 27182
1 33 35 27182
)";

template <typename data_T>
Expand Down Expand Up @@ -132,7 +132,7 @@ bool accuracy(const sycl::device& dev, oneapi::mkl::uplo uplo, int64_t n, int64_
e[diag] -= A[diag + (diag + 1) * lda].real();
else
for (int64_t diag = 0; diag < n - 1; diag++)
e[diag] -= A[diag + 1 + (diag)*ldt].real();
e[diag] -= A[diag + 1 + (diag)*lda].real();

auto ulp = reference::lamch<fp_real>('P');
if (reference::lange('I', n, 1, d.data(), n) > 10.0 * ulp) {
Expand Down
4 changes: 2 additions & 2 deletions tests/unit_tests/lapack/source/sytrd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
namespace {

const char* accuracy_input = R"(
0 33 35 27182
1 33 35 27182
)";

template <typename data_T>
Expand Down Expand Up @@ -132,7 +132,7 @@ bool accuracy(const sycl::device& dev, oneapi::mkl::uplo uplo, int64_t n, int64_
e[diag] -= A[diag + (diag + 1) * lda];
else
for (int64_t diag = 0; diag < n - 1; diag++)
e[diag] -= A[diag + 1 + (diag)*ldt];
e[diag] -= A[diag + 1 + (diag)*lda];

auto ulp = reference::lamch<fp_real>('P');
if (reference::lange('I', n, 1, d.data(), n) > 10.0 * ulp) {
Expand Down

0 comments on commit 231aee3

Please sign in to comment.