Closed xobust closed 3 years ago
Oh, do you think -march=native will cause issues when people on machines that are different from their servers?
Yes it could create incompatible binaries, It might be better to remove it and tell people to add -mfma if the server cpu is newer than sandy bridge.
Some old servers I tried did not support FMA. I made a non FMA version and tested it.
An improvement could be to check for FMA support at runtime, but I didn't find a good solution for that yet.
I added a "march=native" compiler flag this will build for FMA if it is available on the build cpu. If you want to build for multiple CPU types it might be better to manually tune the cflags.