This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Use AVX/AVX512 selectively
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Alexander Monakov <amonakov at ispras dot ru>
- Cc: Victor Rodriguez <vm dot rod25 at gmail dot com>, gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Thu, 03 Mar 2016 15:46:47 +0100
- 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> <alpine dot LNX dot 2 dot 20 dot 1603031736460 dot 26918 at monopod dot intra dot ispras dot ru>
* Alexander Monakov:
> On Thu, 3 Mar 2016, Florian Weimer wrote:
>> 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.
>
> I think separate compilation is the proper tool for this. Your initial
> message seems to imply you seek another method; why?
Mere convenience. I wouldn't have to split the test file into two
source files.