You may also want to specify -mtune=<cpu-type>. It is usually redundant (-march implies -mtune), but depending on how old your compiler is/how new your hardware is your compiler may not properly classify your hardware and still tune for “generic”.
Best regards, Jacob Faibussowitsch (Jacob Fai - booss - oh - vitch) > On Mar 17, 2022, at 13:37, Jed Brown <[email protected]> wrote: > > -march=native, which is also recognized by the new Intel compilers (icx), > which are based on LLVM. > > Ernesto Prudencio via petsc-users <[email protected]> writes: > >> Hi all. >> >> When compiling PETSc with INTEL compilers, we have been using the options >> "-Ofast -xHost". Is there an equivalent to -xHost for GNU compilers? >> >> Thank you in advance, >> >> Ernesto. >> >> >> Schlumberger-Private
