Using multiple Intel Visual Fortran versions in Microsoft Visual Studio

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 Compiler 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 Parallel Studio XE 2013 SP1 installed and then install Intel Parallel Studio XE 2015, the 2013 SP1 integration is removed and the 2015 integration installed. With the 2015 version, you have access to compiler versions 13.1, 14.0 and 15.0 only, even if you still have older versions, (such as Intel Visual Fortran Compiler Professional Editon 11.1), installed. 

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 Parallel Studio XE 2015 and have left Intel Parallel Studio XE 2013 SP1 installed, you can select either the 2013 SP1 or 2015 compiler in Visual Studio 2010, 2012 or 2013, but only the 2013 SP1 compiler in Visual Studio 2008.  To make this selection, go to Tools > Options > Intel Parallel Studio XE (or Intel Composer XE) > Visual Fortran > Compilers (if you have Intel Visual Fortran Composer XE 2013 or later 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 2010Visual Studio 2010 and later compiler selection dialog

 

Microsoft Visual Studio 2008 and 2005Visual Studio 2008 Compiler selection dialog

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.

Contrassegni:
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione