Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Running MPI FFTW2 Wrapper Examples

There are some examples that demonstrate how to use the MPI FFTW wrapper library for FFTW2. The source C code for the examples, makefiles used to run them, and files with lists of examples are located in the .\examples\fftw2x_cdft subdirectory in the Intel® oneAPI Math Kernel Library directory. To build examples, one additional file, fftw_mpi.h, is needed. This file is distributed with permission from FFTW and is available in .\include\fftw. The original file can also be found in FFTW 2.1.5 at http://www.fftw.org/download.html.

Parameters for the example makefiles are described in the makefile comment headings and are similar to the parameters of the wrapper library makefiles (see Creating MPI FFTW Wrapper Library).

The table below lists examples available in the .\examples\fftw2x_cdft\source subdirectory.

Examples of MPI FFTW Wrappers
Source file for the example Description

wrappers_c1d.c

One-dimensional Complex MPI FFTW transform, using plan = fftw_mpi_create_plan(...)

wrappers_c2d.c

Two-dimensional Complex MPI FFTW transform, using plan = fftw2d_mpi_create_plan(...)

wrappers_c3d.c

Three-dimensional Complex MPI FFTW transform, using plan = fftw3d_mpi_create_plan(...)

wrappers_c4d.c

Four-dimensional Complex MPI FFTW transform, using plan = fftwnd_mpi_create_plan(...)

wrappers_r1d.c

One-dimensional Real MPI FFTW transform, using plan = rfftw_mpi_create_plan(...)

wrappers_r2d.c

Two-dimensional Real MPI FFTW transform, using plan = rfftw2d_mpi_create_plan(...)

wrappers_r3d.c

Three-dimensional Real MPI FFTW transform, using plan = rfftw3d_mpi_create_plan(...)

wrappers_r4d.c

Four-dimensional Real MPI FFTW transform, using plan = rfftwnd_mpi_create_plan(...)