mbox series

[v3,00/10] centralize AVX-512 feature detection

Message ID 20241008165258.2802099-1-bruce.richardson@intel.com (mailing list archive)
Headers
Series centralize AVX-512 feature detection |

Message

Bruce Richardson Oct. 8, 2024, 4:52 p.m. UTC
The meson code to detect CPU and compiler support for AVX512 was duplicated
across multiple components. Do all detection in just a single place to simplify
the code.

v3: add in patches for net lib and virtio driver
v2: ensure that target_has_avx512 is always defined on x86 to fix build errors


Bruce Richardson (10):
  config/x86: add global defines for checking AVX-512
  event/dlb2: use global AVX-512 variables
  common/idpf: use global AVX-512 variables
  net/cpfl: use global AVX-512 variables
  net/i40e: use global AVX-512 variables
  net/iavf: use global AVX-512 variables
  net/ice: use global AVX-512 variables
  net/idpf: use global AVX-512 variables
  net/virtio: use global AVX-512 variables
  net: use global AVX-512 variables

 config/x86/meson.build          | 19 +++++++++++----
 drivers/common/idpf/meson.build | 17 ++-----------
 drivers/event/dlb2/meson.build  | 42 +++++++--------------------------
 drivers/net/cpfl/meson.build    | 19 ++-------------
 drivers/net/i40e/meson.build    | 13 ++--------
 drivers/net/iavf/meson.build    | 13 ++--------
 drivers/net/ice/meson.build     | 15 ++----------
 drivers/net/idpf/meson.build    | 19 ++-------------
 drivers/net/virtio/meson.build  | 32 ++++++++++++-------------
 lib/net/meson.build             | 40 ++++---------------------------
 10 files changed, 55 insertions(+), 174 deletions(-)

--
2.43.0
  

Comments

David Marchand Oct. 9, 2024, 9:05 a.m. UTC | #1
On Tue, Oct 8, 2024 at 6:53 PM Bruce Richardson
<bruce.richardson@intel.com> wrote:
>
> The meson code to detect CPU and compiler support for AVX512 was duplicated
> across multiple components. Do all detection in just a single place to simplify
> the code.
>
> v3: add in patches for net lib and virtio driver
> v2: ensure that target_has_avx512 is always defined on x86 to fix build errors
>
>
> Bruce Richardson (10):
>   config/x86: add global defines for checking AVX-512
>   event/dlb2: use global AVX-512 variables
>   common/idpf: use global AVX-512 variables
>   net/cpfl: use global AVX-512 variables
>   net/i40e: use global AVX-512 variables
>   net/iavf: use global AVX-512 variables
>   net/ice: use global AVX-512 variables
>   net/idpf: use global AVX-512 variables
>   net/virtio: use global AVX-512 variables
>   net: use global AVX-512 variables
>
>  config/x86/meson.build          | 19 +++++++++++----
>  drivers/common/idpf/meson.build | 17 ++-----------
>  drivers/event/dlb2/meson.build  | 42 +++++++--------------------------
>  drivers/net/cpfl/meson.build    | 19 ++-------------
>  drivers/net/i40e/meson.build    | 13 ++--------
>  drivers/net/iavf/meson.build    | 13 ++--------
>  drivers/net/ice/meson.build     | 15 ++----------
>  drivers/net/idpf/meson.build    | 19 ++-------------
>  drivers/net/virtio/meson.build  | 32 ++++++++++++-------------
>  lib/net/meson.build             | 40 ++++---------------------------
>  10 files changed, 55 insertions(+), 174 deletions(-)

Series applied, thanks Bruce.