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 support for multi-threaded plan execution #127

Open
SallySoul opened this issue Sep 24, 2024 · 0 comments
Open

Add support for multi-threaded plan execution #127

SallySoul opened this issue Sep 24, 2024 · 0 comments

Comments

@SallySoul
Copy link

SallySoul commented Sep 24, 2024

Possible dupe of #126

Before I dive in, I want say I'm interested in opening a PR for this. I was hoping to hear if anyone had looked into this before, or you had any feedback.

For reference, the FFTW3-multithreaded docs are here

My initial thoughts on what needs to happen:

  • This should be an opt in feature that doesn't change the default behavior of the fftw crate.
  • Add a new crate feature to fftw-src that builds fftw3 with thread support, and links library
    • Could add feature for OpenMP support too, but thats not a priority for me at the moment.
    • Unclear how this would work on windows, also not a priority for me, but I do have a windows machine I can experiment on.
  • Add a new crate feature to fftw-sys that would export fftw_init_threads and fftw_plan_with_nthreads
  • Add a new create feature to fftw that when enabled adds new planner constructors that accept a "# of threads" parameter
    • The old constructors can be assumed to use 1 thread
    • fftw_init_threads would also need a counterpart somewhere.
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

No branches or pull requests

1 participant