bef605b08a
armadillo can use lapack or openblas as BLAS provider. LAPACK support is optional. This patch - adds an _ARCH_SUPPORTS variable to check if one is available - adds an option to choose lapack or openblas as BLAS provider The choice is required since applications may potentially need lapack. Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
comment "armadillo needs a toolchain w/ C++"
|
|
depends on BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS
|
|
depends on !BR2_INSTALL_LIBSTDCPP
|
|
|
|
comment "armadillo needs a toolchain w/ fortran, C++"
|
|
depends on !BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS # otherwise, see comment above
|
|
depends on BR2_PACKAGE_LAPACK_ARCH_SUPPORTS
|
|
depends on !BR2_TOOLCHAIN_HAS_FORTRAN || !BR2_INSTALL_LIBSTDCPP
|
|
|
|
config BR2_PACKAGE_ARMADILLO
|
|
bool "armadillo"
|
|
depends on BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS || \
|
|
(BR2_PACKAGE_LAPACK_ARCH_SUPPORTS && BR2_TOOLCHAIN_HAS_FORTRAN)
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
help
|
|
Armadillo: An Open Source C++ Linear Algebra Library for
|
|
Fast Prototyping and Computationally Intensive Experiments.
|
|
|
|
http://arma.sourceforge.net/
|
|
|
|
if BR2_PACKAGE_ARMADILLO
|
|
|
|
choice
|
|
prompt "BLAS implementation"
|
|
|
|
config BR2_PACKAGE_ARMADILLO_OPENBLAS
|
|
bool "openblas"
|
|
depends on BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS
|
|
select BR2_PACKAGE_OPENBLAS
|
|
|
|
config BR2_PACKAGE_ARMADILLO_LAPACK
|
|
bool "lapack"
|
|
depends on BR2_PACKAGE_LAPACK_ARCH_SUPPORTS && BR2_TOOLCHAIN_HAS_FORTRAN
|
|
select BR2_PACKAGE_LAPACK
|
|
|
|
endchoice
|
|
|
|
endif
|