DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] simplify building x86 code with AVX2 support
@ 2023-07-27  9:31 Bruce Richardson
  2023-07-27  9:31 ` [PATCH 1/2] build/x86: remove conditional checks for " Bruce Richardson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Bruce Richardson @ 2023-07-27  9:31 UTC (permalink / raw)
  To: dev; +Cc: Bruce Richardson

Inside our optimized vector drivers (and libs), there were always build
time checks for various levels of instruction set support, most
notably AVX2 and AVX-512 on x86 systems. One of the checks done in
each case was verifying that the compiler used was able to generate
AVX code appropriately. However, since this was originally done,
our minimum compiler support has been updated and so we no longer
need to check this - all supported compilers can generate AVX2.
This allows us to simplify the build logic for the x86 vector code.

In future, we can do similarly for AVX-512.

Bruce Richardson (2):
  build/x86: remove conditional checks for AVX2 support
  build: remove unnecessary AVX2 compiler flag

 drivers/net/bnxt/bnxt_ethdev.c          |  8 ++++----
 drivers/net/bnxt/bnxt_rxr.h             |  2 +-
 drivers/net/bnxt/bnxt_txr.h             |  2 +-
 drivers/net/bnxt/meson.build            | 26 +++++++++----------------
 drivers/net/enic/meson.build            | 10 +++-------
 drivers/net/i40e/i40e_rxtx.c            | 14 ++++---------
 drivers/net/i40e/meson.build            | 22 ++++++---------------
 drivers/net/iavf/iavf_rxtx_vec_common.h |  2 +-
 drivers/net/iavf/meson.build            | 22 ++++++---------------
 drivers/net/ice/meson.build             | 21 ++++++--------------
 lib/acl/meson.build                     | 23 +++++-----------------
 lib/acl/rte_acl.c                       | 10 +++-------
 12 files changed, 49 insertions(+), 113 deletions(-)

--
2.39.2


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

end of thread, other threads:[~2023-10-12 12:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-27  9:31 [PATCH 0/2] simplify building x86 code with AVX2 support Bruce Richardson
2023-07-27  9:31 ` [PATCH 1/2] build/x86: remove conditional checks for " Bruce Richardson
2023-07-27  9:31 ` [PATCH 2/2] build: remove unnecessary AVX2 compiler flag Bruce Richardson
2023-10-12 12:37 ` [PATCH 0/2] simplify building x86 code with AVX2 support David Marchand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).