Skip to content

Clarification on intended support for negative strides in FFTW #414

Description

@haiwenheaven

Hello,

I am currently exploring and comparing the capability boundaries of Intel oneMKL and FFTW for strided transforms, especially transforms using negative input or output strides.

During this investigation, I found that negative strides appear to be only partially covered and not always handled consistently in FFTW. In particular:

  • Some negative-stride cases appear to cause the FFTW planner to continue indefinitely while consuming increasing amounts of memory, eventually exhausting the available memory;
  • The existing correctness tests do not appear to systematically cover negative strides;
  • Some negative-stride cases expose bugs in the test infrastructure.

I understand that not every negative-stride layout, particularly an in-place layout, is necessarily valid or expected to be supported. Before preparing patches, I would like to clarify the intended support boundary:

  1. Are negative strides intended to be supported by the advanced, guru, and guru64 interfaces when the supplied memory layout is otherwise valid?
  2. Do you consider negative-stride support, or bugs exposed by negative strides, important enough to address upstream?
  3. Would regression tests and focused fixes for these cases be welcome?
  4. Are there specific negative-stride combinations that should be treated as unsupported?

If this is considered relevant, I plan to prepare focused patches that add deterministic negative-stride regression tests, fix test-infrastructure problems separately, and address confirmed FFTW implementation bugs in individual changes.

Thank you.

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