Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 2.25 KB

index.rst

File metadata and controls

68 lines (49 loc) · 2.25 KB

Kokkos-fft documentation

Kokkos-fft implements local interfaces between Kokkos and de facto standard FFT libraries, including fftw, cufft, hipfft (rocfft), and oneMKL. "Local" means not using MPI, or running within a single MPI process without knowing about MPI. We are inclined to implement the numpy.fft-like interfaces adapted for Kokkos. A key concept is that "As easy as numpy, as fast as vendor libraries". Accordingly, our API follows the API by numpy.fft with minor differences. A FFT library dedicated to Kokkos Device backend (e.g. cufft for CUDA backend) is automatically used.

Kokkos-fft is open source and available on GitHub.

Here is an example for 1D real to complex transform with rfft in Kokkos-fft.

This is equivalent to the following python script.

import numpy as np
x = np.random.rand(4)
x_hat = np.fft.rfft(x)

Note

It is assumed that backend FFT libraries are appropriately installed on the system.

getting_started finding_libraries api_reference examples