Skip to contentSkip to conversation

common/idpf: fix compilation for AVX512DQ

PATCH Superseded Wenjun Wu 2 participants 3 messages Feb 9, 2023 – Feb 13, 2023

Subsystems (2)
lore
Share & tools
lore

Wenjun Wu

author
#0 lore raw

PATCH 1/1 common/idpf: fix compilation for AVX512DQ

Some intrinsics used in idpf split queue AVX512 datapath ask for CPUID flag AVX512DQ and compilation flag -mavx512dq.

Fixes 43e916179fa2 ("common/idpf: add AVX512 data path for split queue model")
---
 drivers/common/idpf/meson.build | 8 +++++---
 drivers/net/idpf/meson.build    | 6 ++++--
 2 files changed, 9 insertions(+), 5 deletions(-)
drivers/common/idpf/meson.build +5 -3
index 13df0d9ac3..0272548040 100644
@@ -12,18 +12,20 @@ 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) != ''
+        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')
+        cc.has_argument('-mavx512bw') and
+        cc.has_argument('-mavx512dq')
     )
 
     if idpf_avx512_cpu_support == true or idpf_avx512_cc_support == true
         cflags += ['-DCC_AVX512_SUPPORT']
-        avx512_args = [cflags, '-mavx512f', '-mavx512bw']
+        avx512_args = [cflags, '-mavx512f', '-mavx512bw', '-mavx512dq']
         if cc.has_argument('-march=skylake-avx512')
             avx512_args += '-march=skylake-avx512'
         endif
drivers/net/idpf/meson.build +4 -2
index 98f8ceb77b..f8fcb21a3c 100644
@@ -23,13 +23,15 @@ 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) != ''
+        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')
+        cc.has_argument('-mavx512bw') and
+        cc.has_argument('-mavx512dq')
     )
 
     if idpf_avx512_cpu_support == true or idpf_avx512_cc_support == true
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH v2 1/1 common/idpf: fix compilation for AVX512DQ

Some intrinsics used in idpf split queue AVX512 datapath ask for CPUID flag AVX512DQ and compilation flag -mavx512dq.

Fixes 43e916179fa2 ("common/idpf: add AVX512 data path for split queue model")
---
 drivers/common/idpf/meson.build | 8 +++++---
 drivers/net/idpf/meson.build    | 6 ++++--
 2 files changed, 9 insertions(+), 5 deletions(-)
drivers/common/idpf/meson.build +5 -3
index 13df0d9ac3..58059ef443 100644
@@ -12,18 +12,20 @@ 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) != ''
+        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')
+        cc.has_argument('-mavx512bw') and
+        cc.has_argument('-mavx512dq')
     )
 
     if idpf_avx512_cpu_support == true or idpf_avx512_cc_support == true
         cflags += ['-DCC_AVX512_SUPPORT']
-        avx512_args = [cflags, '-mavx512f', '-mavx512bw']
+        avx512_args = [cflags, '-mavx512f', '-mavx512bw', '-mavx512dq']
         if cc.has_argument('-march=skylake-avx512')
             avx512_args += '-march=skylake-avx512'
         endif
drivers/net/idpf/meson.build +4 -2
index 98f8ceb77b..f8fcb21a3c 100644
@@ -23,13 +23,15 @@ 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) != ''
+        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')
+        cc.has_argument('-mavx512bw') and
+        cc.has_argument('-mavx512dq')
     )
 
     if idpf_avx512_cpu_support == true or idpf_avx512_cc_support == true
Signature · 1 line
2.34.1
#2 lore raw
Quoted 10 lines

-----Original Message-----
From: Wenjun Wu <[email protected]>
Sent: Thursday, February 9, 2023 1:49 PM
To: [email protected]; Wu, Jingjing <[email protected]>; Xing, Beilei <[email protected]>
Cc: Wu, Wenjun1 <[email protected]>
Subject: [PATCH v2] common/idpf: fix compilation for AVX512DQ

Quoted 7 lines

Some intrinsics used in idpf split queue AVX512 datapath ask for CPUID flag AVX512DQ and compilation flag -mavx512dq.

Fixes 43e916179fa2 ("common/idpf: add AVX512 data path for split queue

model")

Squashed into 43e916179fa2 ("common/idpf: add AVX512 data path for split queue model") in dpdk-next-net-intel.