Using older Intel Visual Fortran versions in different Microsoft Visual Studio versions

This article explains how to use multiple versions of the Intel® Visual Fortran compiler in one or more versions of Microsoft Visual Studio*. For information on which Microsoft Visual Studio versions are supported by various versions of Intel Visual Fortran, see Intel® Fortran Compiler for Windows* - Required and optional Microsoft* development software

Overview

When you install a new version of Intel® Visual Fortran Composer XE, it uninstalls the previously installed Fortran integration into Microsoft Visual Studio and installs the new one. A given version of the Fortran integration supports using the current compiler version and the two previous versions.  For example, if you currently have Intel Visual Fortran Composer XE 2011 installed and then install Intel Visual Fortran Composer XE 2013, the 2011 integration is removed and the 2013 integration installed. With the 2013 version, you have access to compiler versions 12.0, 12.1 and 13.0 only, even if you still have older versions, (such as Intel Visual Fortran Compiler Professional Editon 11.1), installed. Furthermore, installing the 2013 product removes Fortran integration from Microsoft Visual Studio 2005 and does not replace it, since the 2013 product does not support Visual Studio 2005.

This article shows you both how to select a compiler version within Visual Studio and how to preserve/reinstall an older compiler version's integration in an older Visual Studio version.

Selecting Compiler Version in Microsoft Visual Studio

If you have multiple versions of Intel Visual Fortran installed, you can select among up to three most recent compiler versions in a version of Microsoft Visual Studio that is supported by the latest Intel Visual Fortran version installed. Only compiler versions that support that version of Visual Studio may be selected.

For example, if you have installed Intel Visual Fortran Composer XE 2013 and have left Intel Visual Fortran Composer XE 2011 installed, you can select either the 2011 or 2013 compiler in Visual Studio 2008 or 2010, but only the 2013 compiler may be selected in Visual Studio 2012.  To make this selection, go to Tools > Options > Intel Composer XE > Visual Fortran > Compilers (if you have Intel Visual Fortran Composer XE 2013 installed), or Tools > Options > Intel Visual Fortran > Compilers (if you have an earlier version installed)

The appearance of these dialogs varies slightly by Visual Studio version.

Microsoft Visual Studio 2013, 2012 and 2010

 

Microsoft Visual Studio 2008 and 2005

You can choose a different compiler version for 32-bit (Win32) or 64-bit (x64) platform targets.  By default, the latest installed compiler version is selected. Use the "Selected compiler" or "Selected version" dropdown menu to choose from among the available versions.  If you want to make a choice for the 64-bit platform as well, click on the "x64" tab (VS2013, VS2012 and VS2010) or select Platform > x64 (VS2008 and VS2005) and then choose the compiler there.  Please note that this dialog is not how you select whether to build a 32-bit or 64-bit version of your application - that is done in Build > Configuration Manager when you have a project open.

Preserving Old Compiler Versions in Older Visual Studio Versions

If you have more than one version of Microsoft Visual Studio installed, you can keep separate versions of the Intel Visual Fortran integration in each.  The steps to do so depend on whether or not you have already installed the newer version.

Newer version not yet installed

  • Make a copy of the "Intel Fortran" subfolder of the Microsoft Visual Studio installation which you want to preserve.  This will be under:
    • <Program Files>\Microsoft Visual Studio 12.0 for VS2013
    • <Program Files>\Microsoft Visual Studio 11.0 for VS2012
    • <Program Files>\Microsoft Visual Studio 10.0 for VS2010
    • <Program Files>\Microsoft Visual Studio 9.0 for VS2008
    • <Program Files>\Microsoft Visual Studio 8 for VS2005
      where <Program Files> is typically C:\Program Files (x86) on 64-bit systems and C:\Program Files on 32-bit systems.
  • Install the newer version
  • Replace the contents of the "Intel Fortran" folder as located above with the saved copy
  • Follow Step 3 "Repair the Integration" as shown in Troubleshooting Fortran Integration Issues with Visual Fortran

If the Visual Studio version where you retained the older compiler version is one that is also supported by the newer compiler version, then you will have to repeat this step before installing any updates to the newer version.

Newer version already installed

  • Delete the "Intel Fortran" subfolder of the Microsoft Visual Studio installation in which you want to use the older compiler.  The folder may not exist. This will be under:
    • <Program Files>\Microsoft Visual Studio 12.0 for VS2013
    • <Program Files>\Microsoft Visual Studio 11.0 for VS2012
    • <Program Files>\Microsoft Visual Studio 10.0 for VS2010
    • <Program Files>\Microsoft Visual Studio 9.0 for VS2008
    • <Program Files>\Microsoft Visual Studio 8 for VS2005
      where <Program Files> is typically C:\Program Files (x86) on 64-bit systems and C:\Program Files on 32-bit systems.
  • Uninstall and reinstall the older version

If the Visual Studio version where you retained the older compiler version is one that is also supported by the newer compiler version, then you will have to repeat this step before installing any updates to the newer version.

Questions or Problems?

If you need help following the instructions in this article, or have questions, please ask in our User Forum or contact Intel® Premier Support.

Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.