[PATCH v1 3/8] common/idpf: use global AVX-512 variables
Bruce Richardson
bruce.richardson at intel.com
Mon Sep 30 19:50:27 CEST 2024
Replace per-driver checks for AVX-512 with the standard variables from
config/x86.
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
drivers/common/idpf/meson.build | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
diff --git a/drivers/common/idpf/meson.build b/drivers/common/idpf/meson.build
index 80c8906f80..1cf215186c 100644
--- a/drivers/common/idpf/meson.build
+++ b/drivers/common/idpf/meson.build
@@ -16,22 +16,9 @@ sources = files(
)
if arch_subdir == 'x86'
- idpf_avx512_cpu_support = (
- cc.get_define('__AVX512F__', args: machine_args) != '' and
- cc.get_define('__AVX512BW__', args: machine_args) != '' and
- cc.get_define('__AVX512DQ__', args: machine_args) != ''
- )
-
- idpf_avx512_cc_support = (
- not machine_args.contains('-mno-avx512f') and
- cc.has_argument('-mavx512f') and
- cc.has_argument('-mavx512bw') and
- cc.has_argument('-mavx512dq')
- )
-
- if idpf_avx512_cpu_support == true or idpf_avx512_cc_support == true
+ if target_has_avx512 or cc_has_avx512
cflags += ['-DCC_AVX512_SUPPORT']
- avx512_args = [cflags, '-mavx512f', '-mavx512bw', '-mavx512dq']
+ avx512_args = [cflags] + cc_avx512_flags
if cc.has_argument('-march=skylake-avx512')
avx512_args += '-march=skylake-avx512'
endif
--
2.43.0
More information about the dev
mailing list