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

Make use of OpenBLAS/BLAS if available? #115

Open
akielaries opened this issue Apr 2, 2024 · 2 comments
Open

Make use of OpenBLAS/BLAS if available? #115

akielaries opened this issue Apr 2, 2024 · 2 comments
Labels
dependencies Pull requests that update a dependency file v1.x Goals for v1.0.0 stable release

Comments

@akielaries
Copy link
Owner

There could be some ways to use CMake and preprocessor macros to use OpenBLAS or other BLAS like libraries in the project?

@akielaries akielaries added dependencies Pull requests that update a dependency file v1.x Goals for v1.0.0 stable release labels Apr 2, 2024
@akielaries
Copy link
Owner Author

IIRC OpenBLAS uses multithreading by default via ENV vars. Using the CMake build systems check if OpenBLAS is on the system some how, if it is link against it. Perhaps leave the multithreading option up to the user and their use of OpenBLAS, otherwise not really sure what to do on this...

As far as distinguishing between which routines to use (DGEMM from our linalg module or DGEMM from OpenBLAS, etc) there are a few ways:

  1. Wrappers around this routines that take the same parameters but different internal logic depending on the routine (our DGEMM has 13 params, typical DGEMM has 11?)
  2. Conditional compilation + preprocessor macros

@akielaries
Copy link
Owner Author

Included detection and a macro for OpenBLAS but nothing is utilizing it so far. CMake is able to detect available OpenBLAS installations so far

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file v1.x Goals for v1.0.0 stable release
Projects
None yet
Development

No branches or pull requests

1 participant