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

[tests][LAPACK] Avoid cuSOLVER bug in *trd tests #498

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

sknepper
Copy link
Contributor

Description

The LAPACK *trd (sytrd, hetrd) tests fail with cuSOLVER backend during the off-diagonal check. This check compares the superdiagonal of A (for upper case; otherwise subdiagonal for lower case) with the output vector e, which contains the off-diagonal elements of the tridiagonal matrix. This appears to expose a legitimate, albeit relatively minor, bug in cuSOLVER for the upper case, where the first element of the superdiagonal of A, A[0,1], is always -1. The rest of the elements of the superdiagonal are equal to the values in the output e vector, which contains the off-diagonal elements of the tridiagonal matrix.

Since the lower case does not appear to have this bug in cuSOLVER, the input being tested was changed to test the lower case. Additionally a typo was fixed in the test to use the correct leading dimension when accessing the A matrix.

Fixes #231

Checklist

All Submissions

  • Do all unit tests pass locally? cusolver_tests.log

  • Have you formatted the code using clang-format? N/A

Bug fixes

  • Have you added relevant regression tests? Existing test was modified.
  • Have you included information on how to reproduce the issue (either in a
    GitHub issue or in this PR)? Run regular unit tests.

@sknepper
Copy link
Contributor Author

/intelci: run

1 similar comment
@toxicscum
Copy link

/intelci: run

Copy link

@zhangkev2 zhangkev2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link

@sergey-v-kuznetsov sergey-v-kuznetsov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look goods to me

@sknepper sknepper merged commit 231aee3 into oneapi-src:develop Jun 4, 2024
4 of 5 checks passed
@sknepper sknepper deleted the trd_test_fix branch June 4, 2024 18:50
normallytangent pushed a commit to normallytangent/oneMKL that referenced this pull request Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[cuSOLVER] *trd* tests are failed with latest oneMKL and LLVM
7 participants