Gromacs  2026.0-dev-20250326-5574735
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Enumerations | Functions
rocfft_common_utils.h File Reference
#include <rocfft/rocfft.h>
#include "gromacs/math/vectypes.h"
#include "gromacs/utility/arrayref.h"
+ Include dependency graph for rocfft_common_utils.h:
+ This graph shows which files directly or indirectly include this file:

Description

Declares common utilities to use with rocfft.

Author
Paul Bauer paul..nosp@m.baue.nosp@m.r.q@g.nosp@m.mail.nosp@m..com

Classes

class  gmx::RocfftInitializer
 Provides RAII-style initialization of rocFFT library. More...
 
struct  gmx::RocfftPlan
 All the persistent data for planning an executing a 3D FFT. More...
 
struct  gmx::PlanSetupData
 Helper struct to reduce repetitive code setting up a 3D FFT plan. More...
 

Enumerations

enum  gmx::FftDirection : int { RealToComplex, ComplexToReal, Count }
 Model the kinds of 3D FFT implemented.
 

Functions

void gmx::handleRocFftError (rocfft_status result, const std::string &msg)
 Helper for consistent error handling.
 
void gmx::handleRocFftError (rocfft_status result, const std::string &direction, const std::string &msg)
 Helper for consistent error handling.
 
std::array< size_t, DIM > gmx::makeRealStrides (ivec realGridSizePadded)
 Compute the stride through the real 1D array.
 
std::array< size_t, DIM > gmx::makeComplexStrides (ivec complexGridSizePadded)
 Compute the stride through the complex 1D array.
 
size_t gmx::computeTotalSize (ivec gridSize)
 Compute total grid size.