Use AVX/AVX512 selectively

Victor Rodriguez vm.rod25@gmail.com
Thu Mar 3 14:25:00 GMT 2016


Hi Florian

What HW are you ussing ?

As far as I knwo the avx512 might not be supported I have use this :

https://github.com/VictorRodriguez/Presentations/blob/master/GCC5/GCC5.pdf

Hope it helps

Regards

Victor Rodriguez



On Tue, Mar 1, 2016 at 9:02 AM, Florian Weimer <fw@deneb.enyo.de> wrote:
> What's the correct way to use AVX and AVX512 selectively?
>
> Specifying -mavx512f (for example) on the command line causes GCC 6 to
> use such instructions during regular code generation, even without any
> AVX512F instructions in the code.
>
> According to the documentation, the target function attribute does not
> support "avx512f".
>
> Are there other options besides separate compilation?



More information about the Gcc-help mailing list