From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: James Hilliard <james.hilliard1@gmail.com>
Cc: Stefan Hager <stefan.hager@ginzinger.com>,
Samuel Martin <s.martin49@gmail.com>,
Fabrice Fontaine <fontaine.fabrice@gmail.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v4 04/13] package/gemmlowp: new package
Date: Mon, 30 Jan 2023 08:13:36 +0100 [thread overview]
Message-ID: <20230130071336.GF2632@scaer> (raw)
In-Reply-To: <CADvTj4rYJHfDyhEmtogs0WQ30=FZQH8zWAcuwZMxmebq_iL7xA@mail.gmail.com>
James, All,
On 2023-01-29 20:17 -0700, James Hilliard spake thusly:
> On Sun, Jan 29, 2023 at 2:45 PM Yann E. MORIN <yann.morin.1998@free.fr> wrote:
[--SNIP--]
> > For x86, we should probably have code like (what we have as
> > BR2_X86_CPU_HAS_SSE4 seems to be SSE4.1, but it is not clear whether
> > there is an actual delta between SSE4 and SSE4.1 [0], so let's be safe
> > and assume that BR2_X86_CPU_HAS_SSE4 is not enough):
> >
> > ifeq ($(BR2_X86_CPU_HAS_SSE42),y)
> > GEMMLOWP_OPTIM += -msse4.1
> > endif
> >
> > However, that same header seems to also have some detection based on
> > macros... This needs to be cleared, maybe?
>
> Well gemmlowp is effectively a header only library so optimization flags would
> not be set for the gemmlowp package itself but rather in something like the
> tensorflow-lite package which consumes the headers AFAIU.
Yeah, I noticed that it was a header-only library only later...
Still, for those packages, gemmlowp, neon-2-sse, maybe fxdiv, they do
have a requirement that SSE be needed, so they should depend on that.
For example:
config BR2_PACKAGES_GEMMLOWP_ARCH_SUPPORTS
bool
default y if BR2_X86_CPU_HAS_SSE42
default y if BR2_ARM_CPU_HAS_NEON
Or:
config BR2_PACKAGES_NEON_2_SEE_ARCH_SUPPORTS
bool
default y if BR2_X86_CPU_HAS_SSE3
Otherwise, those packages (notable neon-2-sse) don't make much sense, or
will be horribly slow...
Can you send a set of patches, please?
Regards,
Yann E. MORIN.
> Note there's technically an unused deprecated library that gets installed
> to staging, we don't install it to target since we don't have anything consuming
> that deprecated interface at all:
> https://github.com/google/gemmlowp#old-eightbitintgemm-legacy-deprecated-interface
>
> >
> > [0] https://en.wikipedia.org/wiki/SSE4
> >
> > Regards,
> > Yann E. MORIN.
> >
> > > +$(eval $(cmake-package))
> > > --
> > > 2.34.1
> > >
> > > _______________________________________________
> > > buildroot mailing list
> > > buildroot@buildroot.org
> > > https://lists.buildroot.org/mailman/listinfo/buildroot
> >
> > --
> > .-----------------.--------------------.------------------.--------------------.
> > | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> > | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
> > | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
> > | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
> > '------------------------------^-------^------------------^--------------------'
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2023-01-30 7:13 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-27 14:10 [Buildroot] [PATCH v4 01/13] package/flatbuffers: build position independent code James Hilliard
2023-01-27 14:10 ` [Buildroot] [PATCH v4 02/13] package/cpuinfo: new package James Hilliard
2023-01-29 21:18 ` Yann E. MORIN
2023-01-27 14:10 ` [Buildroot] [PATCH v4 03/13] package/ruy: " James Hilliard
2023-01-27 14:10 ` [Buildroot] [PATCH v4 04/13] package/gemmlowp: " James Hilliard
2023-01-29 21:45 ` Yann E. MORIN
2023-01-30 3:17 ` James Hilliard
2023-01-30 7:13 ` Yann E. MORIN [this message]
2023-01-30 7:45 ` James Hilliard
2023-01-29 21:46 ` Yann E. MORIN
2023-01-29 23:51 ` James Hilliard
2023-01-27 14:10 ` [Buildroot] [PATCH v4 05/13] package/neon-2-sse: " James Hilliard
2023-01-29 21:58 ` Yann E. MORIN
2023-01-27 14:10 ` [Buildroot] [PATCH v4 06/13] package/fxdiv: " James Hilliard
2023-01-29 22:28 ` Yann E. MORIN
2023-01-27 14:10 ` [Buildroot] [PATCH v4 07/13] package/pthreadpool: " James Hilliard
2023-01-27 14:10 ` [Buildroot] [PATCH v4 08/13] package/psimd: " James Hilliard
2023-01-27 14:10 ` [Buildroot] [PATCH v4 09/13] package/fp16: " James Hilliard
2023-01-27 14:10 ` [Buildroot] [PATCH v4 10/13] package/xnnpack: " James Hilliard
2023-01-27 14:10 ` [Buildroot] [PATCH v4 11/13] package/fft2d: " James Hilliard
2023-01-27 14:10 ` [Buildroot] [PATCH v4 12/13] package/farmhash: " James Hilliard
2023-01-27 14:10 ` [Buildroot] [PATCH v4 13/13] package/tensorflow-lite: " James Hilliard
2023-01-29 20:55 ` [Buildroot] [PATCH v4 01/13] package/flatbuffers: build position independent code Yann E. MORIN
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=20230130071336.GF2632@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@buildroot.org \
--cc=fontaine.fabrice@gmail.com \
--cc=james.hilliard1@gmail.com \
--cc=s.martin49@gmail.com \
--cc=stefan.hager@ginzinger.com \
--cc=thomas.petazzoni@bootlin.com \
/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