Skip to content

Define FFT planning flags independent from FFTWΒ #71

@david-macmahon

Description

@david-macmahon

The FFT planning functions, plan_fft et al., accept a keyword argument flags that is used to provide options to the planning function of the FFT implementation. The flags argument is currently documented to be "a bitwise-or of FFTW planner flags". This effectively creates a documented dependency on FFTW, even though FFTW is not a dependency of AbstractFFTs (in fact it's the other way around). It would be preferable to have AbstractFFTs define any and all flags that FFT planners may wish to use and then have FFT implementations, such as FFTW, adapt the flags from AbstractFFTs values to suitable values for use with the underlying implementation as they see fit.

For an example of why the current approach is problematic, see JuliaGPU/CUDA.jl#1559

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions