silx icon indicating copy to clipboard operation
silx copied to clipboard

Utility to import/export FFTW plans

Open pierrepaleo opened this issue 3 years ago • 0 comments

This PR adds a small utility for easily importing/exporting FFTW plans, called wisdom.

The wisdom data structure is saved in a numpy npz file, along with some "metadata" (eg. machine name). The rationale of this metadata is to avoid using plans created on different platforms - this can hamper performance.

The unit test is probably too simple. In theory, we should check that instantiating fftw.FFTW object is faster after importing wisdom (for the corresponding configuration) - but that can be tricky. Suggestions welcome :-)

Changelog: Add export_wisdom() and import_wisdom() in silx.math.fft.fftw

pierrepaleo avatar Jun 15 '22 15:06 pierrepaleo