FFTW / fftw3

DO NOT CHECK OUT THESE FILES FROM GITHUB UNLESS YOU KNOW WHAT YOU ARE DOING. (See below.)
GNU General Public License v2.0
2.76k stars 667 forks source link

hardcoded `-mcpu=power8` flag #247

Open nolta opened 3 years ago

nolta commented 3 years ago

I'm compiling on a Power9 system with GCC and the --enable-vsx flag, and i noticed that the CPU type is hardcoded to Power8:

https://github.com/FFTW/fftw3/blob/e9c510bf92a4fa848982310d2ecc8c5701aa3f6a/m4/ax_cc_maxopt.m4#L95-L101

I'm not sure what the best fix is, but replacing -mcpu=power8 with -mcpu=native might be a good option.