ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
P3MFFT< FloatType, Architecture, FFTConfig > Class Template Reference

FFT manager. More...

#include <P3MFFT.hpp>

Public Types

using OutputType = typename heffte::fft_output<FloatType>::type
using backend
template<class T = OutputType>
using buffer_container

Public Member Functions

 ~P3MFFT ()
 P3MFFT (stream_type gpu_stream, boost::mpi::communicator comm, Utils::Vector3i const &global_mesh, Utils::Vector3i const &rs_local_ld_index, Utils::Vector3i const &rs_local_ur_index, Utils::Vector3i const &node_grid, unsigned n_fields=1u)
Utils::Vector3i ks_local_ld_index () const
Utils::Vector3i ks_local_ur_index () const
Utils::Vector3i ks_local_size () const
Utils::Vector3i rs_local_size () const
void forward (auto &&in, auto &&out)
void backward (auto &&in, auto &&out)
void backward_batch (unsigned const n, auto *const in, auto *const out)
 Backward transform of n fields stored back to back, batched or one by one, whichever was measured to be faster.

Detailed Description

template<typename FloatType, Arch Architecture, class FFTConfig>
class P3MFFT< FloatType, Architecture, FFTConfig >

FFT manager.

Definition at line 53 of file P3MFFT.hpp.

Member Typedef Documentation

◆ backend

template<typename FloatType, Arch Architecture, class FFTConfig>
using P3MFFT< FloatType, Architecture, FFTConfig >::backend
Initial value:
std::conditional_t<Architecture == Arch::CPU, heffte::backend::fftw,
heffte::backend::cufft>

Definition at line 56 of file P3MFFT.hpp.

◆ buffer_container

template<typename FloatType, Arch Architecture, class FFTConfig>
template<class T = OutputType>
using P3MFFT< FloatType, Architecture, FFTConfig >::buffer_container
Initial value:
std::conditional_t<
Architecture == Arch::CPU, fft::vector<T>,
typename heffte::fft3d<backend>::template buffer_container<T>>
std::conditional_t< Architecture==Arch::CPU, fft::vector< T >, typename heffte::fft3d< backend >::template buffer_container< T > > buffer_container
Definition P3MFFT.hpp:60
std::vector< T, allocator< T > > vector
Definition vector.hpp:54

Definition at line 60 of file P3MFFT.hpp.

◆ OutputType

template<typename FloatType, Arch Architecture, class FFTConfig>
using P3MFFT< FloatType, Architecture, FFTConfig >::OutputType = typename heffte::fft_output<FloatType>::type

Definition at line 55 of file P3MFFT.hpp.

Constructor & Destructor Documentation

◆ ~P3MFFT()

template<typename FloatType, Arch Architecture, class FFTConfig>
P3MFFT< FloatType, Architecture, FFTConfig >::~P3MFFT ( )
inline

Definition at line 141 of file P3MFFT.hpp.

◆ P3MFFT()

template<typename FloatType, Arch Architecture, class FFTConfig>
P3MFFT< FloatType, Architecture, FFTConfig >::P3MFFT ( stream_type gpu_stream,
boost::mpi::communicator comm,
Utils::Vector3i const & global_mesh,
Utils::Vector3i const & rs_local_ld_index,
Utils::Vector3i const & rs_local_ur_index,
Utils::Vector3i const & node_grid,
unsigned n_fields = 1u )
inline

Member Function Documentation

◆ backward()

template<typename FloatType, Arch Architecture, class FFTConfig>
void P3MFFT< FloatType, Architecture, FFTConfig >::backward ( auto && in,
auto && out )
inline

Definition at line 384 of file P3MFFT.hpp.

◆ backward_batch()

template<typename FloatType, Arch Architecture, class FFTConfig>
void P3MFFT< FloatType, Architecture, FFTConfig >::backward_batch ( unsigned const n,
auto *const in,
auto *const out )
inline

Backward transform of n fields stored back to back, batched or one by one, whichever was measured to be faster.

Definition at line 391 of file P3MFFT.hpp.

◆ forward()

template<typename FloatType, Arch Architecture, class FFTConfig>
void P3MFFT< FloatType, Architecture, FFTConfig >::forward ( auto && in,
auto && out )
inline

Definition at line 381 of file P3MFFT.hpp.

◆ ks_local_ld_index()

template<typename FloatType, Arch Architecture, class FFTConfig>
Utils::Vector3i P3MFFT< FloatType, Architecture, FFTConfig >::ks_local_ld_index ( ) const
inline

Definition at line 368 of file P3MFFT.hpp.

Referenced by ks_local_size().

◆ ks_local_size()

template<typename FloatType, Arch Architecture, class FFTConfig>
Utils::Vector3i P3MFFT< FloatType, Architecture, FFTConfig >::ks_local_size ( ) const
inline

Definition at line 374 of file P3MFFT.hpp.

References ks_local_ld_index(), and ks_local_ur_index().

◆ ks_local_ur_index()

template<typename FloatType, Arch Architecture, class FFTConfig>
Utils::Vector3i P3MFFT< FloatType, Architecture, FFTConfig >::ks_local_ur_index ( ) const
inline

Definition at line 371 of file P3MFFT.hpp.

References Utils::Vector< int, N >::broadcast().

Referenced by ks_local_size().

◆ rs_local_size()

template<typename FloatType, Arch Architecture, class FFTConfig>
Utils::Vector3i P3MFFT< FloatType, Architecture, FFTConfig >::rs_local_size ( ) const
inline

Definition at line 377 of file P3MFFT.hpp.

References Utils::Vector< int, N >::broadcast().


The documentation for this class was generated from the following files: