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

Call npvt routines from hipBLAS #367

Merged
merged 2 commits into from
Aug 27, 2021
Merged

Call npvt routines from hipBLAS #367

merged 2 commits into from
Aug 27, 2021

Conversation

tfalders
Copy link
Contributor

Addresses SWDEV-297252.

This PR allows the getrf and getri routines in hipBLAS to receive null ipiv arrays, disabling pivoting in these routines similarly to cuBLAS.

Copy link
Contributor

@daineAMD daineAMD left a comment

Choose a reason for hiding this comment

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

Sorry I guess I missed this one. Looks good, just a question - why does rocSOLVER have two separate functions for these instead of handling the nullptr in the original functions?

@tfalders
Copy link
Contributor Author

Sorry I guess I missed this one. Looks good, just a question - why does rocSOLVER have two separate functions for these instead of handling the nullptr in the original functions?

IIRC, the concern was that allowing nullptr to be passed as in cuBLAS was bad coding practice and could result in a user accidentally passing a nullptr and getting degraded numerical stability without warning. The first solution was to have a bool argument that defaulted to requiring a non-null ipiv array, but this broke C compatibility because C can't do default arguments. That's when we switched to separate functions, which I think is preferred by both the team and the feature requester.

@tfalders tfalders merged commit 684c581 into ROCm:develop Aug 27, 2021
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.

2 participants