[dpdk-dev] [PATCH v4 1/3] net/ice: add AVX512 vector path

Bruce Richardson bruce.richardson at intel.com
Tue Oct 27 11:19:08 CET 2020


On Mon, Oct 26, 2020 at 09:09:31AM +0100, David Marchand wrote:
> On Mon, Oct 26, 2020 at 8:13 AM Rong, Leyi <leyi.rong at intel.com> wrote:
> > Would prefer using __AVX512F__ instead of RTE_MACHINE_CPUFLAG_AVX512F here rather than remove the RTE_MACHINE_CPUFLAG_ macro directly to check the CPU capability.
> > So the judgment statement will be
> > if cc.get_define('__AVX512F__', args: machine_args) != '' or (not machine_args.contains('-mno-avx512f') and cc.has_argument('-mavx512f'))
> >
> > what do you think?
> 
> No opinion as I have yet to understand the subtleties to control
> enablement of avx stuff.
> Bruce?
> 
The above proposal is correct, in that we now check the compiler flags
directly rather than using our own custom flags.

/Bruce


More information about the dev mailing list