OpenPFC  0.1.4
Phase Field Crystal simulation framework
Loading...
Searching...
No Matches
fft_cuda.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 VTT Technical Research Centre of Finland Ltd
2// SPDX-License-Identifier: AGPL-3.0-or-later
3
17#pragma once
18
20#include "openpfc/fft.hpp"
21
22#include <heffte.h>
23#include <mpi.h>
24
25namespace pfc {
26namespace fft {
27
53#if defined(OpenPFC_ENABLE_CUDA)
54// GPU FFT type alias
55using FFT_CUDA = FFT_Impl<heffte::backend::cufft>;
56
75FFT_CUDA create_cuda(const Decomposition &decomposition, int rank_id);
76
92FFT_CUDA create_cuda(const Decomposition &decomposition);
93#endif // OpenPFC_ENABLE_CUDA
94
95} // namespace fft
96} // namespace pfc
Domain decomposition for parallel MPI simulations.
Fast Fourier Transform interface for spectral methods.