Tutorial

Introduction to Using Coarray Fortran

The Intel® Fortran Compiler supports parallel programming using coarrays as defined in the Fortran 2008 standard. As an extension to the Fortran language, coarrays offer one method to use Fortran as a robust and efficient parallel programming language. Coarrays are supported in the Intel® Fortran Compiler.

This tutorial demonstrates writing, building, and running a Fortran application using coarrays.

This tutorial is available for Windows* only.

Improving Performance with Interprocedural Optimization

The compiler may be able to perform additional optimizations if it is able to optimize across source line boundaries. These may include, but are not limited to, function inlining. This is enabled with the -ipo option.

Recompile the program using the -ipo option to enable interprocedural optimization.

icc -std=c99 -qopt-report=2 -qopt-report-phase=vec -D NOALIAS -D ALIGNED -ipo Multiply.c Driver.c -o MatVector

Building the OpenMP* Version

To build the OpenMP* version, you will modify the sample application to use OpenMP* parallelization and then compile the modified code. You will then run the application and compare the time with the baseline performance time.

  1. Remove all of the files that were created when you build the serial version by running the following command in a terminal session:

Assine o Tutorial