From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: Arnout Vandecappelle <arnout@mind.be>
Cc: buildroot@busybox.net
Subject: Re: [Buildroot] [PATCH v5 3/3] package/armadillo: allow to select between lapack or openblas
Date: Tue, 3 Aug 2021 22:57:39 +0200 [thread overview]
Message-ID: <20210803225739.15e612d5@windsurf> (raw)
In-Reply-To: <fd67895e-5c9e-62bc-7a4b-dd41bed13c0d@mind.be>
Hello,
On Mon, 26 Jul 2021 08:24:37 +0200
Arnout Vandecappelle <arnout@mind.be> wrote:
> > fortran is only required if lapack has to be used: if lapack is said as optional this is
> > maybe not required ?
>
> Oh, I intended to insert a comment there but apparently forgot: We need either
> openblas (which doesn't require fortran) or lapack (which does require fortran).
> Therefore, on architectures which do support openblas, we should have a comment
> that just says "C++", while on architectures that don't support openblas (but do
> support lapack) we should have a comment that says "C++ and Fortran".
... but this is exactly what your patch does:
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
If we're on an arch supported by openblas, "needs a toolchain w/ C++"
is displayed.
If we're on an arch not supported by openblas, but supported by lapack,
"needs a toolchain w/ fortran, C++" is displayed.
So it all looks good to me.
> > It's an open question:
> > until now armadillo was always built with blas and lapack support provided by
> > clapack. To avoid breaking current behaviour (lapack support) why not
> > considering selecting lapack package unconditionaly and let user choise for
> > blas support? I know the main issue is the dependency to fortran...
>
> What you're basically saying is that in the choice between lapack and openblas,
> lapack should be the default, right?
>
> Can you maybe explain a bit what your original reason for this patch was?
> Armadillo basically hides the BLAS implementation, so unless it's buggy, you
> shouldn't even notice which implementation is behind. Also, the lapack package
> itself says that you should not use its BLAS implementation but you should use a
> better one instead.
I was also confused by Gwenhael's comment, including with his reply to
your question. So at this point, I've applied your patch as-is, we can
always improve/fix later on if needed.
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
next prev parent reply other threads:[~2021-08-03 20:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-25 11:12 [Buildroot] [PATCH v5 1/3] package/python-numpy: use lapack instead of clapack Arnout Vandecappelle (Essensium/Mind)
2021-07-25 11:12 ` [Buildroot] [PATCH v5 2/3] package/clapack: Remove Arnout Vandecappelle (Essensium/Mind)
2021-07-26 21:47 ` Thomas Petazzoni
2021-07-25 11:12 ` [Buildroot] [PATCH v5 3/3] package/armadillo: allow to select between lapack or openblas Arnout Vandecappelle (Essensium/Mind)
2021-07-25 15:57 ` Gwenhael Goavec-Merou
2021-07-26 6:24 ` Arnout Vandecappelle
2021-07-27 13:49 ` Gwenhael Goavec-Merou
2021-08-03 20:57 ` Thomas Petazzoni [this message]
2021-08-03 21:49 ` Arnout Vandecappelle
2021-08-03 20:55 ` Thomas Petazzoni
2021-07-26 21:47 ` [Buildroot] [PATCH v5 1/3] package/python-numpy: use lapack instead of clapack Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210803225739.15e612d5@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=arnout@mind.be \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox