From: Leyi Rong <leyi.rong@intel.com>
To: alialnu@nvidia.com, thomas@monjalon.net
Cc: dev@dpdk.org, Leyi Rong <leyi.rong@intel.com>
Subject: [PATCH] member: fix build failure with GCC 5.4.0
Date: Mon, 10 Oct 2022 16:22:45 +0800 [thread overview]
Message-ID: <20221010082245.2868071-1-leyi.rong@intel.com> (raw)
This patch fixes the build failure by typecasting to match
_mm512_i32gather_epi64() definition.
Bugzilla ID: 1096
Fixes: db354bd2e1f8 ("member: add NitroSketch mode")
Signed-off-by: Leyi Rong <leyi.rong@intel.com>
---
lib/member/rte_member_sketch_avx512.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/member/rte_member_sketch_avx512.c b/lib/member/rte_member_sketch_avx512.c
index 288e37a446..42c6d6b023 100644
--- a/lib/member/rte_member_sketch_avx512.c
+++ b/lib/member/rte_member_sketch_avx512.c
@@ -28,8 +28,8 @@ sketch_update_avx512(const struct rte_member_setsum *ss,
v_row_base = _mm256_mullo_epi32(v_idx, v_col);
v_hash_result = _mm256_add_epi32(v_row_base, v_hash_result);
- current_sketch =
- _mm512_i32gather_epi64(v_hash_result, count_array, 8);
+ current_sketch = _mm512_i32gather_epi64
+ (v_hash_result, (void *)count_array, 8);
v_count = _mm512_set1_epi64(count);
updated_sketch = _mm512_add_epi64(current_sketch, v_count);
_mm512_i32scatter_epi64
--
2.25.1
next reply other threads:[~2022-10-10 8:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-10 8:22 Leyi Rong [this message]
2022-10-10 8:43 ` Ali Alnubani
2022-10-10 10:21 ` Thomas Monjalon
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=20221010082245.2868071-1-leyi.rong@intel.com \
--to=leyi.rong@intel.com \
--cc=alialnu@nvidia.com \
--cc=dev@dpdk.org \
--cc=thomas@monjalon.net \
/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).