No instructions from the AVX512VL ISA are used. Compilation for AVX512F and AVX512 BW ISA are already enabled in lib/automake.mk for the dpif-netdev-lookup-avx512-gather.c file because it's part of the libopenvswitchavx512.la library. They don't need to be enabled at a function level.
Remove these unnecessary function-level compiler target attributes. Signed-off-by: Cian Ferriter <cian.ferri...@intel.com> Acked-by: Sunil Pai G <sunil.pa...@intel.com> --- v5: * Remove an 'avx512bw' target since it's also unnecessary as per Sunil's suggestion. * Add Sunil's Acked-by tag. v4: * Remove the 'avx512f' target since it's also unnecessary. * Sunil acked the v3 version of this commit, but since it's changed, I'm not carrying the ack over. --- lib/dpif-netdev-extract-avx512.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/dpif-netdev-extract-avx512.c b/lib/dpif-netdev-extract-avx512.c index 6b6fe07db..4a94dfcfd 100644 --- a/lib/dpif-netdev-extract-avx512.c +++ b/lib/dpif-netdev-extract-avx512.c @@ -52,7 +52,6 @@ /* AVX512-BW level permutex2var_epi8 emulation. */ static inline __m512i -__attribute__((target("avx512bw"))) _mm512_maskz_permutex2var_epi8_skx(__mmask64 k_mask, __m512i v_data_0, __m512i v_shuf_idxs, @@ -632,8 +631,6 @@ mfex_avx512_process(struct dp_packet_batch *packets, #define DECLARE_MFEX_FUNC(name, profile) \ uint32_t \ -__attribute__((__target__("avx512f"))) \ -__attribute__((__target__("avx512vl"))) \ __attribute__((__target__("avx512vbmi"))) \ mfex_avx512_vbmi_##name(struct dp_packet_batch *packets, \ struct netdev_flow_key *keys, uint32_t keys_size,\ @@ -645,8 +642,6 @@ mfex_avx512_vbmi_##name(struct dp_packet_batch *packets, \ } \ \ uint32_t \ -__attribute__((__target__("avx512f"))) \ -__attribute__((__target__("avx512vl"))) \ mfex_avx512_##name(struct dp_packet_batch *packets, \ struct netdev_flow_key *keys, uint32_t keys_size, \ odp_port_t in_port, struct dp_netdev_pmd_thread \ -- 2.25.1 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev