member: fix build with GCC 5.4.0

This patch fixes the build failure by typecasting to match
_mm512_i32gather_epi64() definition.

Bugzilla ID: 1096
Fixes: db354bd2e1 ("member: add NitroSketch mode")

Signed-off-by: Leyi Rong <leyi.rong@intel.com>
Tested-by: Ali Alnubani <alialnu@nvidia.com>
This commit is contained in:
Leyi Rong 2022-10-10 16:22:45 +08:00 committed by Thomas Monjalon
parent de254dac60
commit 373b51ef02

View File

@ -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