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

Move [cz]symv and [cz]syr from LAPACK++ #91

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mgates3
Copy link
Collaborator

@mgates3 mgates3 commented Nov 5, 2024

This moves [cz]symv and [cz]syr into BLAS++, where they logically should reside, rather than LAPACK++, where they have resided for historical reasons. [cz]symv and [cz]syr are in LAPACK rather than Reference BLAS. Most vendors ship BLAS and LAPACK together (OpenBLAS, Intel MKL, Cray LibSci), so users don't notice the difference.

However, IBM ESSL notably has only a limited subset of LAPACK, and lacks [cz]symv and [cz]syr. For ESSL, users can also link with reference LAPACK to complete it. See https://www.ibm.com/docs/en/essl/6.3?topic=reference-lapack-lapacke.

This supersedes PR #86.

@mgates3
Copy link
Collaborator Author

mgates3 commented Nov 5, 2024

@weslleyspereira Related to earlier discussion in PR #11.

…are defined in LAPACK, not in reference BLAS, so require a full LAPACK.
`string( REGEX MATCH pattern x str )`
as simpler and more robust than
`if (pattern MATCHES str) set( x true ) endif`
To be robust when x is already defined, that would need `else set( x false )`.
Copy link
Collaborator Author

@mgates3 mgates3 left a comment

Choose a reason for hiding this comment

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

Reviewed.

test/cblas_wrappers.cc Outdated Show resolved Hide resolved
@mgates3 mgates3 changed the title Add [cz]symv and [cz]syr Move [cz]symv and [cz]syr from LAPACK++ Nov 6, 2024
mgates3

This comment was marked as duplicate.

Copy link
Collaborator Author

@mgates3 mgates3 Nov 6, 2024

Choose a reason for hiding this comment

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

Add to test.hh and test.cc.
Add to run_tests.py.
Compare with icl-utk-edu/lapackpp#71.

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