Currently we compile and run code on same hardware, so -march=native
flag is used.
We are going to keep running on this hardware but compile on different architecture. So I need to replace native
with whatever it is equivalent to on current hardware.
Is there a way to get gcc
to report what native
is equivalent to on particular hardware?
gcc -march=native -Q --help=target
reported `-march = knl'. This is surprising to me - we don't have any Phi accelerators. Is it expected? – Baseman