Intel® Fortran Compiler 17.0 Developer Guide and Reference

Using the IMSL Libraries from the Integrated Development Environment (Windows*)

To use the IMSL* libraries from the Microsoft Visual Studio* IDE:

  1. Add the IMSL Include and Library directories to the list of directories searched:

    1. Select Tools > Options.

    2. Select Intel Compilers and Tools > Visual Fortran

    3. Select Compilers.

    4. Select the Target Platform for which you want to make changes. Select Win32 for IA-32 (32-bit) architecture. Select x64 for Intel® 64 (64-bit) architecture.

      Make sure that the desired compiler version is selected.

    5. At the right of Libraries, click the "..." button. This opens the list of libraries directories.

    6. Add to the end of the list, one of the following:

      • For IA-32 architecture: $(FNL_DIR)\IA32\lib

      • For Intel® 64 architecture: $(FNL_DIR)\Intel64\lib

    7. Click OK.

    8. At the right of Includes, click the "..." button.

    9. Add to the end of the list, one of the following:

      • For IA-32 architecture: $(FNL_DIR)\IA32\include\dll

      • For Intel® 64 architecture: $(FNL_DIR)\Intel64\include\dll

    10. Click OK.

    11. Repeat steps c through i for the other target architecture if desired.

    12. Click OK to save the changes.

    You need to reapply these changes if you install a new version of the compiler or use the installation option to keep an existing update installed when installing a new update.

  2. To pass IMSL libraries to the Linker, add one of the following lines to your main program or any convenient source file for your application. This needs to be specified only once per application.

    • To use the static library form of the libraries:

      INCLUDE 'link_fnl_static.h'

    • To use the dynamic link library form of the libraries:

      INCLUDE 'link_fnl_shared.h'

    • To use the static library form of the libraries and the Intel® Math Kernel Library:

      INCLUDE 'link_fnl_static_hpc.h'

    • To use the dynamic link library form and the Intel® Math Kernel Library:

      INCLUDE 'link_fnl_shared_hpc.h'

    • To use the MPIC, the static library form of the libraries and the MPI* version of the error handler:

      INCLUDE 'link_mpi.h'

    • To use MPI, the static library form of the libraries, the MPI version of the error handler and the Intel® Math Kernel Library:

      INCLUDE 'link_mpi_hpc.h'

    • To use MPI, the static library form of the libraries and the scalar version of the error handler:

      INCLUDE 'link_mpis.h'

    • To use MPI, the static library form of the libraries, the scalar version of the error handler and the Intel® Math Kernel Library:

      INCLUDE 'link_mpis_hpc.h'

    If you want to specify the libraries explicitly, select Project>Add Existing Item..., change Files of Type to All Files, browse to the IMSL Libraries folder, and add the appropriate libraries as explained in IMSL Include File and Library Naming Conventions and Redistribution.

  3. Ensure that the following project properties are set to ensure correct operation with the IMSL libraries:

    • Fortran>External Procedures>Calling Convention>Default

    • Fortran>External Procedures>Name Case Interpretation>Upper Case

    • Fortran>External Procedures>String Length Argument Passing>After All Arguments

    • Fortran>External Procedures>Append Underscores to External Names>No

    • Fortran>Floating Point>Floating Point Exception Handling>Produce NaN, signed infinities, and denormal results

    • Linker>System>Stack Reserve Amount>6000000 (this value may need to be adjusted upwards if stack overflow errors are seen)

    • Fortran>Language>Process OpenMP Directives>Generate Parallel Code

Note

For some more information about IMSL, see the article titled: Installing and using the IMSL* Libraries, which is located in http://intel.ly/1jwfWnB