This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/78379] Processor-specific versions for matmul


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78379

--- Comment #15 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
OMG, the world of processors is more complicated than I thought.
So, these rather modern AMD chips support AVX, but suck at it.

Two questions:

- Can you check if -mfma3 and/or -mfma4 make any difference?

- If you start any program compiled with -g under the debugger, break
  anywhere (for example at the beginning of the main program)
  and do a "p __cpu_model", what do you get?

I am halfway tempted to restrict the AVX* stuff to Intel processors
only.  At least, this way we will not make things worse for AMD
processors.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]