Bazel build rules for OpenBLAS.
Uses rules_foreign_cc to do a CMake configuration (default options), build, and install of OpenBLAS from source. This allows the user to include @openblas in the deps argument in project BUILD files. See the examples folder for a simple example.
For usage see the instructions with the latest release.
- Windows 10
- Ubuntu 20.04.5 LTS
- MacOS 12.6.3
If the CMake configuration or build fails I recommend to check the CMake.log under $(GENDIR)/openblas_foreign_cc for any errors. Use bazel info --show_make_env if you are unsure of GENDIR.
If you suspect that the errors can be resolved with cmake configuration options:
- Clone this repository.
- Adjust the
cmakerule inBUILDwith custom settings for your system. - Replace the
http_archivefunction with alocal_repositoryfunction pointing to the cloned repo inWORKSPACE.
- I'd like to expose options for the user to have more control over the cmake rule. For now, you are limited to default options.
- Expand portability to a broader range of systems and environments