This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, fortran] Enable FMA for AVX2 and AVX512F for matmul
- From: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- To: Thomas Koenig <tkoenig at netcologne dot de>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 2 Mar 2017 09:32:35 +0200
- Subject: Re: [patch, fortran] Enable FMA for AVX2 and AVX512F for matmul
- Authentication-results: sourceware.org; auth=none
- References: <6ecdb93d-3aef-746c-8ca0-ed6b78eb12d4@netcologne.de>
On Wed, Mar 1, 2017 at 11:00 PM, Thomas Koenig <tkoenig@netcologne.de> wrote:
> Hello world,
>
> the attached patch enables FMA for the AVX2 and AVX512F variants of
> matmul. This should bring a very nice speedup (although I have
> been unable to run benchmarks due to lack of a suitable machine).
In lieu of benchmarks, have you looked at the generated asm to verify
that fma is actually used?
> Question: Is this still appropriate for the current state of trunk?
Yes, looks pretty safe.
--
Janne Blomqvist