All of lore.kernel.org
 help / color / mirror / Atom feed
* Why disable NEON support in recipes if runtime detection works?
@ 2020-07-19  9:06 Tanu Kaskinen
  2020-07-19  9:30 ` [OE-core] " Adrian Bunk
  2020-07-20 22:26 ` Khem Raj
  0 siblings, 2 replies; 11+ messages in thread
From: Tanu Kaskinen @ 2020-07-19  9:06 UTC (permalink / raw)
  To: openembedded-core

Hi!

If a recipe provides NEON optimizations, should those be explicitly
disabled when "neon" is not in TUNE_FEATUERS, even if the software is
able to detect NEON availability at runtime?

I'm currently converting the pulseaudio recipe from Autotools to Meson,
and the old Autotools build system supports disabling NEON
optimizations but the Meson build system doesn't. So I'm wondering if I
should add the missing feature to the Meson build system, or just let
the runtime detection do its work.

Is there ever need for disabling NEON optimizations if the CPU
indicates NEON support? I guess it could be useful for testing the "no
NEON" case (I today found out that dropping "neon" from TUNE_FEATURES
doesn't remove NEON support from the qemuarm machine), but otherwise it
seems unnecessary, unless there are CPUs that advertise NEON support
but don't actually support it.

PulseAudio doesn't have a similar configure switch for the x86
optimizations, so in the name of consistency I would like to rely only
on the runtime CPU detection also for the NEON optimizations.

-- 
Tanu

https://www.patreon.com/tanuk
https://liberapay.com/tanuk


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-08-23  8:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-19  9:06 Why disable NEON support in recipes if runtime detection works? Tanu Kaskinen
2020-07-19  9:30 ` [OE-core] " Adrian Bunk
2020-07-19  9:46   ` Tanu Kaskinen
2020-07-20 22:26 ` Khem Raj
2020-07-26  6:27   ` Tanu Kaskinen
     [not found]   ` <1625397D9F68474B.26462@lists.openembedded.org>
2020-07-26  7:59     ` Tanu Kaskinen
2020-07-26 14:01       ` Khem Raj
2020-07-27 20:45         ` Andre McCurdy
2020-07-29 13:46           ` Tanu Kaskinen
2020-07-29 22:08             ` Andre McCurdy
2020-08-23  8:53               ` Tanu Kaskinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.