Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add wisdom file option #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add wisdom file option #22

wants to merge 1 commit into from

Conversation

cozzyd
Copy link

@cozzyd cozzyd commented Jan 23, 2020

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
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
Copy link
Author

cozzyd commented Jan 28, 2020 via email

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