This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Use AVX/AVX512 selectively
- From: Victor Rodriguez <vm dot rod25 at gmail dot com>
- To: Florian Weimer <fw at deneb dot enyo dot de>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Thu, 3 Mar 2016 08:51:48 -0600
- Subject: Re: Use AVX/AVX512 selectively
- Authentication-results: sourceware.org; auth=none
- References: <8760x6meb1 dot fsf at mid dot deneb dot enyo dot de> <CAK5mtexM6uRcw6WsRk+g=04xgKVLkx11PG5ffAWzs=y-=mNCBw at mail dot gmail dot com> <87twknd44v dot fsf at mid dot deneb dot enyo dot de> <CAK5mtezbaXD2759HuS-xx4u_bj_1rWH52bxzoX7p_yCGfc4Qng at mail dot gmail dot com> <87a8mfd3am dot fsf at mid dot deneb dot enyo dot de>
On Thu, Mar 3, 2016 at 8:49 AM, Florian Weimer <fw@deneb.enyo.de> wrote:
> * Victor Rodriguez:
>
>> On Thu, Mar 3, 2016 at 8:31 AM, Florian Weimer <fw@deneb.enyo.de> wrote:
>>> * Victor Rodriguez:
>>>
>>>> What HW are you ussing ?
>>>
>>> Both hardware with amd without avx512f capability. There is run-time
>>> detection for it, but for it to be effective, most of the program has
>>> to be compiled without -mavx512f, otherwise the program will use
>>> avx512f instructions before getting to the detection code.
>>
>> Have you try Function Multi Versioning ?
>
> According to the GCC documentation, "avx2" and so on are not supported
> as targets in target function attributes. Perhaps this is incorrect
> and the manual needs fixing?
Yes they are in the latest GCC ( mainline ) or in the Clear Linux GCC
( I added the patches :P )