> -----Original Message-----
> From: Van Haaren, Harry <harry.van.haa...@intel.com>
> Sent: Thursday, July 29, 2021 5:55 PM
> To: ovs-dev@openvswitch.org
> Cc: Stokes, Ian <ian.sto...@intel.com>; Van Haaren, Harry
> <harry.van.haa...@intel.com>
> Subject: [PATCH] dpcls: fix build on compilers without AVX512-VPOPCNT
> 
> This commit adds extra checks around the AVX-512 vpopcnt instruction
> enabling, ensuring that in the function where the ISA is enabled the
> compiler has also indicated its support for the ISA. This is achieved
> by checking the __AVX512VPOPCNTDQ__ define, which the compiler sets if
> it is capable of handling the vpopcnt instruction.
> 
> If the compiler is not capable of handling vpopcnt, we fall back to
> the emulated vpopcnt implementation.
> 
> Reported-by: Ian Stokes <ian.sto...@intel.com>
> Signed-off-by: Harry van Haaren <harry.van.haa...@intel.com>
> 
> ---
> 
> Based on a very old system with GCC 7, an issue was identified
> where the compiler doesn't support the vpopcnt ISA, and resulted
> in compilation failures.

Ping on this patch, would be good to get integrated on 2.16 and master to
ensure Gcc7 builds correctly.
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to