Intel Fortran Compiler

Last updated
Intel Fortran Compiler
Other names
  • ifx
Developer(s) Intel
Preview release
2023.2.1 [1] / July 28, 2023;19 days ago (2023-07-28)
Operating system Linux, Windows
Type Compiler
License Freeware, Optional priority support
Website software.intel.com/content/www/us/en/develop/tools/oneapi/components/fortran-compiler.html
Intel Fortran Compiler Classic
Other names
  • ifort
Developer(s) Intel
Stable release
2021.10.0 Build 20230609_000000 [1] / July 28, 2023;19 days ago (2023-07-28)
Operating system Linux, Windows, macOS
Type Compiler
License Freeware, Optional priority support
Website software.intel.com/content/www/us/en/develop/tools/oneapi/components/fortran-compiler.html

Intel Fortran Compiler, as part of Intel OneAPI HPC toolkit, is a group of Fortran compilers from Intel for Windows, macOS, and Linux.

Contents

Overview

The compilers generate code for IA-32 and Intel 64 processors and certain non-Intel but compatible processors, such as certain AMD processors. A specific release of the compiler (11.1) remains available for development of Linux-based applications for IA-64 (Itanium 2) processors. On Windows, it is known as Intel Visual Fortran. [2] On macOS and Linux, it is known as Intel Fortran. In 2020 the existing compiler was renamed “Intel Fortran Compiler Classic” (ifort) and a new Intel Fortran Compiler for oneAPI (ifx) supporting GPU offload was introduced.

The 2021 release of the Classic compiler adds full Fortran support through the 2018 standard, full OpenMP* 4.5, and Initial Open MP 5.1 for CPU only. The 2021 beta compiler focuses on OpenMP for GPU Offload. When used with the Intel OneAPI HPC toolkit (see the "Description of Packaging" below) the compiler can also automatically generate Message Passing Interface calls for distributed memory multiprocessing from OpenMP directives.

For more information on Fortran standards, a number or resources are available, such as the Wikipedia Fortran entry or the Fortran wiki page.

The Intel Fortran package included the Intel Array Visualizer, a visualization tool for scientific formats such as FITS and netCDF, which can produce x-y plots, contour plots, and image plots, and save them to other formats. [3] [4]

Optimizations

Intel compilers are optimized [5] for computer systems using processors that support Intel architectures. They are designed to minimize stalls and to produce code that executes in the fewest possible number of cycles. Intel Fortran Compilers support three separate high-level techniques for optimizing the compiled program: interprocedural optimization (IPO), profile-guided optimization (PGO), and other high-level optimizations (HLO).

Interprocedural optimization applies typical compiler optimizations (such as constant propagation) but uses a broader scope that may include multiple procedures, multiple files, or the entire program. [6]

Regarding profile-guided optimization, the compiler generates a dataset of performance-related information from using the application with representative workloads, which it then analyzes to find which parts of the application are executed more and less frequently. The compiler uses these data to organize application execution to optimize performance based on how the application is actually used. This is in contrast to IPO which optimizes applications according to the logical flow of the application independent of workloads. The two can be combined to provide workload-based optimizations within which the logical-flow is optimized. Thus, all optimizations can benefit from profile-guided feedback because they are less reliant on heuristics when making compilation decisions.

High-level optimizations are optimizations performed on a version of the program that more closely represents the source code. This includes loop interchange, loop fusion, loop unrolling, loop distribution, data prefetch, and more. [7]

Standards support

The Intel Fortran Compiler Classic fully supports Fortran through the 2018 standard. The Intel Fortran Compiler (Beta) supports full Fortran 77/90/95 and has partial support of the Fortran 2003 standard.

Architectures

Description of packaging

The compilers are available standalone from Intel and from APT and Yum repositories. They are also available in the Intel oneAPI HPC Toolkit which includes other build tools, such as libraries, and analysis tools for error checking and performance analysis. Containers with the compilers are on Docker Hub.

History since 2003

Compiler versionRelease dateMajor new features
Intel Fortran Compiler 8.0December 15, 2003Precompiled headers, code-coverage tools.
Intel Fortran Compiler 8.1September, 2004 AMD64 architecture (for Linux).
Intel Fortran Compiler 9.0June 14, 2005 AMD64 architecture (for Windows), software-based speculative pre-computation (SSP) optimization, improved loop optimization reports.
Intel Fortran Compiler 10.0June 5, 2007Improved parallelizer and vectorizer, Streaming SIMD Extensions 4 (SSE4), new and enhanced optimization reports for advanced loop transformations, new optimized exception handling implementation.
Intel Fortran Compiler 10.1November 7, 2007New OpenMP* compatibility runtime library. To use the new libraries, you need to use the new option "-Qopenmp /Qopenmp-lib:compat" on Windows, and "-openmp -openmp-lib:compat" on Linux. This version of the Intel compiler supports more intrinsics from Microsoft Visual Studio 2005. VS2008 support - command line only in this release.
Intel Fortran Compiler 11.0November 2008More Fortran 2003 support. Support for OpenMP 3.0. Source Checker for static memory/parallel diagnostics. Commercial licenses for Windows version include Microsoft Visual Studio 2005 Premier Partner Edition.
Intel Fortran Compiler 11.1June 23, 2009Support for latest Intel SSE, AVX and AES instructions. More Fortran 2003 support. Support for latest Intel MKL release (included in compiler products). Commercial licenses for Windows version include Microsoft Visual Studio 2008 Shell and libraries.
Intel Fortran Composer XE 2011 up to Update 5 (compiler 12.0)November 7, 2010Coarray Fortran, additional 2003 (FINAL subroutines, GENERIC keyword,) and 2008 (Coarrays, CODIMENSION, SYNC ALL, SYNC IMAGES, SYNC MEMORY, CRITICAL, LOCK, ERROR STOP, ALLOCATE/DEALLOCATE)
Intel Fortran Composer XE 2011 Update 6 and above (compiler 12.1)September 8, 2011OpenMP 3.1, additional 2003 (ALLOCATE with SOURCE=, polymorphic source) and 2008 standards support, Windows version ships with Visual Studio 2010 Shell.
Intel Fortran Composer XE 2013 (compiler 13.0)September 5, 2012Linux-based support for Intel Xeon Phi coprocessors, support for Microsoft Visual Studio 12 (Desktop), support for gcc 4.7, support for Intel AVX 2 instructions, updates to existing functionality focused on delivering improved application performance. Continued availability of the Visual Studio 2010 Shell for Windows versions.
Intel Fortran Composer XE 2013 SP1 (compiler 14.0)July 31, 2013User-Defined Derived Type I/O; OpenMP directives, clauses and procedures; coarrays ; Microsoft Visual Studio parallel build support
Intel Fortran Composer XE 2013 SP1 Update 1 (compiler 14.0.1)October 18, 2013Japanese localization of 14.0; Windows 8.1 and Xcode 5.0 support
Intel Fortran Composer XE 2015 (compiler 15.0)August 5, 2014Full support for Fortran 2003; BLOCK from Fortran 2008; EXECUTE_COMMAND_LINE from Fortran 2008; New optimization report annotates the source from within Visual Studio [8]
Intel Fortran Composer XE 2015 Update 1 (compiler 15.0.1)October 30, 2014 AVX-512 support; Japanese localization; MIN/MAX Reductions in SIMD Loop Directive
Intel Fortran Compiler 16.0, part of Intel Parallel Studio XE 2016August 25, 2015Submodules from Fortran 2008, enhanced interoperability of Fortran with C from draft Fortran 2018, OpenMP 4.1 extensions
Intel Fortran Compiler 17.0March 4, 2016OpenMP 4.5 extensions
Intel Fortran Compiler 18.0January 17, 2017Full Fortran 2008 support
Intel Fortran Compiler 19.0September 12, 2018Some Fortran 2018 features
Intel Fortran Compiler Classic 2021.1.1December 8, 2020Full Fortran 2018 support, OpenMP 4.5 and initial Open MP 5.1 for CPU only
Intel Fortran Compiler (Beta) 2021.1.1December 8, 2020OpenMP* 4.5 and initial OpenMP support for CPU and GPU Offload
Intel Fortran Compiler Classic 2021.5.0December 6, 2021Fortran language fixes and security updates
Intel Fortran Compiler oneAPI 2022.0.0December 6, 2021
  • Full Fortran 2003 except parameterized derived types
  • Full Fortran 2008 except coarrays
  • Corrections to reported problems [9]
Intel Fortran Compiler oneAPI 2023.0.0December 21, 2022
  • Complete Fortran 2003, 2008, 2018 standards
  • IFX now has Fortran language feature parity with IFORT [10]

Debugging

The Intel compiler provides debugging information that is standard for the common debuggers (DWARF 2 on Linux, similar to gdb, and COFF for Windows). The flags to compile with debugging information are /Zi on Windows and -g on Linux. Debugging is done on Windows using the Visual Studio debugger, and on Linux using gdb.

While the Intel compiler can generate a gprof-compatible profiling output, Intel also provides a kernel-level, system-wide statistical profiler as a separate product called VTune. VTune features an easy-to-use GUI (integrated into Visual Studio for Windows, Eclipse for Linux) as well as a command-line interface. In addition to the VTune profiler, there is Intel Advisor that specializes in vectorization optimization and tools for threading design and prototyping.

Intel also offers a tool for memory and threading error detection called Intel Inspector XE. Regarding memory errors, it helps detect memory leaks, memory corruption, allocation/de-allocation of API mismatches and inconsistent memory API usage. Regarding threading errors, it helps detect data races (both heap and stack), deadlocks and thread and synch API errors.

See also

Related Research Articles

<span class="mw-page-title-main">Delphi (software)</span> General-purpose programming language and a software product

Delphi is a general-purpose programming language and a software product that uses the Delphi dialect of the Object Pascal programming language and provides an integrated development environment (IDE) for rapid application development of desktop, mobile, web, and console software, currently developed and maintained by Embarcadero Technologies.

<span class="mw-page-title-main">OpenMP</span> Open standard for parallelizing

OpenMP is an application programming interface (API) that supports multi-platform shared-memory multiprocessing programming in C, C++, and Fortran, on many platforms, instruction-set architectures and operating systems, including Solaris, AIX, FreeBSD, HP-UX, Linux, macOS, and Windows. It consists of a set of compiler directives, library routines, and environment variables that influence run-time behavior.

Linaro DDT is a commercial C, C++ and Fortran 90 debugger. It is widely used for debugging parallel Message Passing Interface (MPI) and threaded programs, including those running on clusters of Linux machines.

VTune Profiler is a performance analysis tool for x86 based machines running Linux or Microsoft Windows operating systems. Many features work on both Intel and AMD hardware, but advanced hardware-based sampling requires an Intel-manufactured CPU.

<span class="mw-page-title-main">Rogue Wave Software</span> American software company

Rogue Wave Software was an American software development company based in Louisville, Colorado. It provided cross-platform software development tools and embedded components for parallel, data-intensive, and other high-performance computing (HPC) applications.

Intel oneAPI DPC++/C++ Compiler and Intel C++ Compiler Classic are Intel’s C, C++, SYCL, and Data Parallel C++ (DPC++) compilers for Intel processor-based systems, available for Windows, Linux, and macOS operating systems.

<span class="mw-page-title-main">The Portland Group</span> American technology company

PGI was a company that produced a set of commercially available Fortran, C and C++ compilers for high-performance computing systems. On July 29, 2013, Nvidia acquired The Portland Group, Inc. As of August 5, 2020, the "PGI Compilers and Tools" technology is a part of the Nvidia HPC SDK product available as a free download from Nvidia.

Intel Integrated Performance Primitives is a multi-threaded software library of functions for multimedia and data processing applications, produced by Intel.

Oracle Developer Studio, formerly named Oracle Solaris Studio, Sun Studio, Sun WorkShop, Forte Developer, and SunPro Compilers, is the Oracle Corporation's flagship software development product for the Solaris and Linux operating systems. It includes optimizing C, C++, and Fortran compilers, libraries, and performance analysis and debugging tools, for Solaris on SPARC and x86 platforms, and Linux on x86/x64 platforms, including multi-core systems.

Intel Parallel Studio XE was a software development product developed by Intel that facilitated native code development on Windows, macOS and Linux in C++ and Fortran for parallel computing. Parallel programming enables software programs to take advantage of multi-core processors from Intel and other processor vendors.

Intel Inspector is a memory and thread checking and debugging tool to increase the reliability, security, and accuracy of C/C++ and Fortran applications.

The Intel Debugger (IDB) was developed by Intel and provided support (at various levels depending on compiler product) for debugging programs written in C, C++, and Fortran (77, 90 and 95). It provided a choice of command-line and Java-based graphical user interface (GUI) on the Linux Eclipse platform. The Intel Debugger was a component of a number of Intel software products, such as Intel Parallel Studio and their C++ and Fortran compiler products; it supported parallel architectures including MPI, OpenMP, and Pthreads.

The Java Development Kit (JDK) is a distribution of Java Technology by Oracle Corporation. It implements the Java Language Specification (JLS) and the Java Virtual Machine Specification (JVMS) and provides the Standard Edition (SE) of the Java Application Programming Interface (API). It is derivative of the community driven OpenJDK which Oracle stewards. It provides software for working with Java applications. Examples of included software are the virtual machine, a compiler, performance monitoring tools, a debugger, and other utilities that Oracle considers useful for a Java programmer.

Intel Advisor is a design assistance and analysis tool for SIMD vectorization, threading, memory use, and GPU offload optimization. The tool supports C, C++, Data Parallel C++ (DPC++), Fortran and Python languages. It is available on Windows and Linux operating systems in form of Standalone GUI tool, Microsoft Visual Studio plug-in or command line interface. It supports OpenMP. Intel Advisor user interface is also available on macOS.

<span class="mw-page-title-main">DynamoRIO</span> Software framework

DynamoRIO is a BSD-licensed dynamic binary instrumentation framework for the development of dynamic program analysis tools. DynamoRIO targets user space applications under the Android, Linux, and Windows operating systems running on the AArch32, IA-32, and x86-64 instruction set architectures.

CodeXL was an open-source software development tool suite which included a GPU debugger, a GPU profiler, a CPU profiler, Graphics frame analyzer and a static shader/kernel analyzer.

Absoft Fortran Compilers are set of Fortran compilers for Microsoft Windows, Apple Macintosh, and Linux produced by Absoft Corporation. The compilers are source code compatible across platforms.

ROCm is an Advanced Micro Devices (AMD) software stack for graphics processing unit (GPU) programming. ROCm spans several domains: general-purpose computing on graphics processing units (GPGPU), high performance computing (HPC), heterogeneous computing. It offers several programming models: HIP, OpenMP/Message Passing Interface (MPI), OpenCL.

oneAPI (compute acceleration) Open standard for parallel computing

one-API is an open standard, adopted by Intel, for a unified application programming interface (API) intended to be used across different computing accelerator (coprocessor) architectures, including GPUs, AI accelerators and field-programmable gate arrays. It is an open, cross-industry, standards-based, unified, multi-architecture, multi-vendor programming model that delivers a common developer experience across accelerator architectures - for faster application performance, more productivity, and greater innovation. The one-API initiative encourages collaboration on the one-API specification and compatible one-API implementations across the ecosystem. It is intended to eliminate the need for developers to maintain separate code bases, multiple programming languages, tools, and workflows for each architecture.

References

  1. 1 2 "Intel® Fortran Compiler for oneAPI Release Notes". Intel. Retrieved 2020-12-28.
  2. "Intel Visual Fortran Compiler Professional Edition for Windows". cnet.com.
  3. Readey, John (October 27, 2004). Intel Array Visualizer. HDF Workshop VIII. Retrieved 6 May 2023.
  4. "Intel Array Visualizer". Intel Developer Zone. 7 March 2016. Archived from the original on March 7, 2016. Retrieved 6 May 2023.
  5. "Intel (Fortran, C, and C++)". NERSC.gov.
  6. Intel compiler documentation. Select the Fortran compiler of choice and search for Profile-Guided Optimization. http://software.intel.com/en-us/intel-software-technical-documentation
  7. The Software Optimization Cookbook, High-Performance Recipes for IA-32 Platforms, Richard Gerber, Aart J.C. Bik, Kevin B. Smith, and Xinmin Tian, Intel Press, 2006
  8. "Intel Visual Fortran 15 now available".
  9. "Fortran Language and OpenMP* Features Implemented in Intel® Fortran Compiler". Intel® Fortran Compiler. Intel . Retrieved 2021-12-27.
  10. "The Next Chapter for the Intel® Fortran Compiler 2023". community.intel.com. 2022-12-21. Retrieved 2023-02-13.