I have the Intel Fortran Compiler (XE 18.104.22.168) and I am using it in a desktop PC which has a Xeon E5-2690v2 CPU (Ivy Bridge). I wanted to ask if I can ask the compiler (my own specific version or even newer versions) to create optimal code targeting to the specific CPU model (or architecture). If yes, how can I do it when building in Windows (through Visual Studio) and Linux?
Many thanks in advance for the help.
Please see https://software.intel.com/en-us/fortran-compiler-developer-guide-and-reference-x-qx . Since you have an older compiler, the specific suboptions that pertain to CPU models that were released in subsequent years to your compiler's release date will not be available with your compiler.