member: fix build failure with GCC 5.4.0
PATCH 1/1 member: fix build failure with GCC 5.4.0
This patch fixes the build failure by typecasting to match _mm512_i32gather_epi64() definition.
Bugzilla ID: 1096
--- lib/member/rte_member_sketch_avx512.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/member/rte_member_sketch_avx512.c +2 -2
@@ -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
Signature · 1 line
2.25.1
Quoted 8 lines
-----Original Message-----
From: Leyi Rong <[email protected]>
Sent: Monday, October 10, 2022 11:23 AM
To: Ali Alnubani <[email protected]>; NBU-Contact-Thomas Monjalon (EXTERNAL) <[email protected]>
Cc: [email protected]; Leyi Rong <[email protected]>
Subject: [PATCH] member: fix build failure with GCC 5.4.0
Quoted 8 lines
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 <[email protected]>---
Thanks Leyi, build passes with this patch.
Thomas Monjalon
Applied10/10/2022 10:43, Ali Alnubani:
Quoted 8 lines
From: Leyi Rong <[email protected]>
Quoted 7 lines
This patch fixes the build failure by typecasting to match
_mm512_i32gather_epi64()definition.Bugzilla ID: 1096
Fixes db354bd2e1f8 ("member: add NitroSketch mode")
Quoted 6 lines
Quoted 2 lines
Signed-off-by Leyi Rong <[email protected]>---
Thanks Leyi, build passes with this patch.
Tested-by Ali Alnubani <[email protected]>
Applied, thanks.