From: Wenjun Wu <wenjun1.wu@intel.com>
To: dev@dpdk.org, jingjing.wu@intel.com, beilei.xing@intel.com
Cc: Wenjun Wu <wenjun1.wu@intel.com>
Subject: [PATCH v2] common/idpf: fix compilation for AVX512DQ
Date: Thu, 9 Feb 2023 05:49:02 +0000 [thread overview]
Message-ID: <20230209054902.2650646-1-wenjun1.wu@intel.com> (raw)
In-Reply-To: <20230209022749.2468940-1-wenjun1.wu@intel.com>
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")
Signed-off-by: Wenjun Wu <wenjun1.wu@intel.com>
---
drivers/common/idpf/meson.build | 8 +++++---
drivers/net/idpf/meson.build | 6 ++++--
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/drivers/common/idpf/meson.build b/drivers/common/idpf/meson.build
index 13df0d9ac3..58059ef443 100644
--- a/drivers/common/idpf/meson.build
+++ b/drivers/common/idpf/meson.build
@@ -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
diff --git a/drivers/net/idpf/meson.build b/drivers/net/idpf/meson.build
index 98f8ceb77b..f8fcb21a3c 100644
--- a/drivers/net/idpf/meson.build
+++ b/drivers/net/idpf/meson.build
@@ -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
--
2.34.1
next prev parent reply other threads:[~2023-02-09 5:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-09 2:27 [PATCH v1] " Wenjun Wu
2023-02-09 5:49 ` Wenjun Wu [this message]
2023-02-13 1:19 ` [PATCH v2] " Zhang, Qi Z
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230209054902.2650646-1-wenjun1.wu@intel.com \
--to=wenjun1.wu@intel.com \
--cc=beilei.xing@intel.com \
--cc=dev@dpdk.org \
--cc=jingjing.wu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).