The Intel® Fortran Compiler compiles Fortran source files for Intel® 64 and IA-32 architectures. You can also use the compiler to create applications targeting Intel® Many Integrated Core Architecture (Intel® MIC Architecture).

Prerequisites

Before you can use this tool, you must first set the environment variables by sourcing the environment script using the initialization utility to initialize all the tools in one step:

  1. From a command prompt or script, cd to <install_dir>/parallel_studio_xe_2018.<update number>.<package number>\bin

    By default, <install_dir> is:

    • For root installations: /opt/intel

    • For non-root installations: $HOME/intel

  2. Enter source psxevars.sh or source psxevars.csh.

Using the Command Line

To invoke the compiler from the command line, use a command similar to the following:

ifort my_source_file.f90

Following successful compilation, the compiler creates an executable file in the current directory.

Training and Documentation

Document Description

Online Training

The online training site is an excellent resource for training on using the compiler: https://software.intel.com/en-us/fortran-compilers-support/training

Release Notes

Information on the product installation, new and changed features, and issues that are not described in the product documentation.

This link takes you to the Intel® Developer Zone.

Samples and Tutorials on the Intel® Developer Zone

Code samples and corresponding tutorials. Learn specific compiler optimizations, features, tools, and programming concepts.

Intel® Fortran Compiler 18.0 Developer Guide and Reference on the Intel® Developer Zone

The Intel® Compiler documentation contains information on:

  • How to get started using the command line or

  • Support for technologies and architectures, including OpenMP*, Fortran language extensions, coarrays, Intel® Many Integrated Core Architecture (Intel® MIC Architecture), and fpp preprocessing

  • Compiler reference material, including options, program structures, class and math libraries, and much more

Intel® Software Documentation Library

Software product documentation on the Intel® Developer Zone. Intel® System Studio is listed under Product Suites.

Other help

You can access general help for compiler options after setting up the environment by entering ifort -help at the command line.