Code Samples
Fortran and OpenMP* Code Samples for CPU
Coarray Fortran
This code sample demonstrates how to build and run a serial implementation of a Monte Carlo program, and then convert it to run in parallel using Fortran coarrays, providing hands-on experience with the Fortran coarray feature for parallel programming.
OpenMP Primes
The OpenMP Primes code sample demonstrates how to use the OpenMP API with Intel Fortran Compiler to find prime numbers, including the count of specific types of primes. This is done by using two OpenMP directives to enhance code performance, providing practical insight into building and running Fortran OpenMP applications.
Fortran and OpenMP Offload
Matrix Multiply Fortran
The Matrix Multiply code sample offers a guided process to adapt a basic Fortran program for offloading computations to an Intel GPU using OpenMP directives with the Intel Fortran Compiler. It focuses on a simple matrix multiplication algorithm to demonstrate the use of OpenMP directives in Fortran for GPU offloading.
OpenMP Offload Fortran Tutorials
This repository contains a Jupyter* Notebook created for illustrating OpenMP offload basics, focusing on the process of offloading intricate calculations to a GPU using OpenMP with the Intel Fortran Compiler, providing comprehensive insights into GPU offloading with OpenMP.
View All Fortran Code Samples in oneAPI Code Samples Catalog