This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/78379] Processor-specific versions for matmul
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 03 Mar 2017 19:41:40 +0000
- Subject: [Bug libfortran/78379] Processor-specific versions for matmul
- Auto-submitted: auto-generated
- References: <bug-78379-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78379
--- Comment #27 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to # David Edelsohn from comment #26)
> What is AVX-specific, as opposed to SIMD vector size-specific, about this
> feature? It seems that this should be enabled for all SIMD architectures of
> the appropriate width.
You're right, this might as well apply to other architectures where
SIMD instructions are available only on some architectures, but
cannot be turned on by default because they are not universally
implemented.
I would need three pieces of information:
- What to put into the libgfortran config file to check if
the installed binutils support the SIMD extension in question
- How to check at runtime for the specific processor version
- Which options to pass to __attribute__((__target__ ..
Then it is relatively straightforward to put this in.