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

Reply via email to