Skip to content

add wisdom file option#22

Open
cozzyd wants to merge 1 commit into
AD-Vega:masterfrom
cozzyd:master
Open

add wisdom file option#22
cozzyd wants to merge 1 commit into
AD-Vega:masterfrom
cozzyd:master

Conversation

@cozzyd

@cozzyd cozzyd commented Jan 23, 2020

Copy link
Copy Markdown

This just adds a wisdom file flag (-W or --wisdom) so that fftw wisdom may be cached to a user-specified file if desired. This is because the planning stage can take a long time for large single-shot spectra.

@alajovic

Copy link
Copy Markdown
Member

Hi cozzyd, thanks for the patch. Before I merge this change, I'd like to address two issues, namely:

  1. The use of a wisdom file is a relatively infrequent requirement, and I don't think it warrants the use of a one-letter command line option (-W). I would prefer retaining only the long version (--wisdom). We have been discussing for a while that we were overzealous when initially designing the command line interface and used far too many short options which now seem rather useless (but we hesitate to remove them because we don't want to break existing scripts). So we would not want to "pollute" the namespace of short options any further.

  2. The logic you have added seems to always write back the wisdom file, even if there is no new wisdom actually generated. My concern is that this could unnecessarily wear flash-based media (USB keys, SD cards in e.g. Raspberry Pi). Due to the accumulative nature of the FFTW wisdom, the simplest complete solution would be to separate the operation into two parameters: reading and writing (for example --import-wisdom <file> and --export-wisdom <file>).

@cozzyd

cozzyd commented Jan 28, 2020 via email

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants