openblas: new package
PATCH v8 1/1 openblas: new package
OpenBLAS is optimised for specific CPU models, which don't fully match with the GCC code generation options. Therefore, we can't automatically select BR2_PACKAGE_OPENBLAS_TARGET based on the CPU choice. Instead, let the user select the TARGET name, but offer a sensible default. Other possible solutions were deemed too complicated: adding choice options in the ambiguous cases, or only making the option user-visible when there is ambiguity.
---
Changes v7 -> v8:
- Rename BR2_PACKAGE_OPENBLAS_TARGET to BR2_PACKAGE_OPENBLAS_DEFAULT_TARGET and make it a blind option. Make BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS depend on BR2_PACKAGE_OPENBLAS_DEFAULT_TARGET != "", this way the package will not be available for architectures which don't have any matching OpenBLAS target. This will avoid future build failures. Finally add BR2_PACKAGE_OPENBLAS_TARGET option, which will depend on the package being selected, to let the user change the default OpenBLAS target. (Arnout)
- Initialise OpenBLAS make options to TARGET_CONFIGURE_OPTS. This way TARGET_CONFIGURE_OPTS is also used in the install phases. (Arnout)
Changes v6 -> v7:
- Change license to BSD-3c. (Baruch)
- Fix indentation for ARM variants. (Yann)
- Don't use += for the first OPENBLAS_MAKE_OPTS assignment. (Yann)
- Use ':' as a separator instead of 'x'. (Yann)
- Move CROSS=1 and TARGET=$(BR2_PACKAGE_OPENBLAS_TARGET) in OPENBLAS_MAKE_OPTS. (Yann)
- Use BR2_ARM_CPU_ARMV7A for ARMV7 OpenBLAS target. (Thomas)
- Use BR2_X86_CPU_HAS_SSE for SSE_GENERIC OpenBLAS target. (Arnout)
- Improve commit log. (Arnout)
- Improve help text for BR2_PACKAGE_OPENBLAS_TARGET. (Arnout)
- Add ARMV5 and ARMV6 OpenBLAS targets. (Arnout)
Changes v5 -> v6:
- Add BR2_PACKAGE_OPENBLAS_ARCH_SUPPORT
- Put openblas targets that depend on "Target Architecture" at bottom. We want the ones depeding on "Target Architecture Variant" first as they are more specific and Buildroot will use the one that matches first.
Changes v4 -> v5:
- Do not use a huge choice with new Buildroot options for every OpenBLAS target. Instead, use a string option with a default value depending on the existing options in arch/Config.in*.
Changes v3 -> v4:
- Disable Fortran by default. It can be added back in the future when we have a BR2_TOOLCHAIN_HAS_FORTRAN hidden symbol.
- Bump version so we can get rid of the patch.
- Match OpenBLAS target cores with Buildroot target cores as much as possible, and drop the ones unsupported in Buildroot.
- Drop the OpenMP bits in the openblas.mk file. It can be added back in the future when we have a BR2_TOOLCHAIN_HAS_OPENMP hidden symbol.
Changes v2 -> v3:
- Switch version to HEAD of develop branch as it contains support for MIPS32.
- Add a patch to fix build failure of P5600 and I6400 targets.
- Add support for OpenMP when toolchain has NPTL threads.
Changes v1 -> v2:
- Multi-threading is not available for static-only since it uses dlfcn.h, so modify the "ifeq" statement accordingly.
package/Config.in | 1 + package/openblas/Config.in | 62 ++++++++++++++++++++++++++++++++++++++++++ package/openblas/openblas.hash | 2 ++ package/openblas/openblas.mk | 55 +++++++++++++++++++++++++++++++++++++ 4 files changed, 120 insertions(+) create mode 100644 package/openblas/Config.in create mode 100644 package/openblas/openblas.hash create mode 100644 package/openblas/openblas.mk
package/Config.in +1 -0
@@ -1293,6 +1293,7 @@ endif source "package/msgpack/Config.in" source "package/mtdev2tuio/Config.in" source "package/netbsd-queue/Config.in" + source "package/openblas/Config.in" source "package/orc/Config.in" source "package/p11-kit/Config.in" source "package/poco/Config.in"
package/openblas/Config.in new file +62 -0
62 lines not on this page · raw message
package/openblas/openblas.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 2ad0270a39dbaf891b439baacf198ea4ab149cd6ed39a5f50c494723f1936be5 openblas-f04af36ad0e85b64f12a7c38095383192cc52345.tar.gz
package/openblas/openblas.mk new file +55 -0
55 lines not on this page · raw message
Signature · 1 line
2.7.3
Thomas Petazzoni
AppliedPATCH v8 1/1 openblas: new package
Hello,
Quoted 9 lines · Vicente Olivert Riera
OpenBLAS is optimised for specific CPU models, which don't fully match with the GCC code generation options. Therefore, we can't automatically select
BR2_PACKAGE_OPENBLAS_TARGETbased on the CPU choice. Instead, let the user select the TARGET name, but offer a sensible default. Other possible solutions were deemed too complicated: adding choice options in the ambiguous cases, or only making the option user-visible when there is ambiguity.Signed-off-by Vicente Olivert Riera <[email protected]>
Quoted 11 lines
---
Changes v7 -> v8:
- RenameBR2_PACKAGE_OPENBLAS_TARGETtoBR2_PACKAGE_OPENBLAS_DEFAULT_TARGETand make it a blind option. MakeBR2_PACKAGE_OPENBLAS_ARCH_SUPPORTSdepend onBR2_PACKAGE_OPENBLAS_DEFAULT_TARGET!= "", this way the package will not be available for architectures which don't have any matching OpenBLAS target. This will avoid future build failures. Finally addBR2_PACKAGE_OPENBLAS_TARGEToption, which will depend on the package being selected, to let the user change the default OpenBLAS target. (Arnout)
- Initialise OpenBLAS make options toTARGET_CONFIGURE_OPTS. This wayTARGET_CONFIGURE_OPTSis also used in the install phases. (Arnout)
Applied to master, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com