-
Notifications
You must be signed in to change notification settings - Fork 54
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
Error when using pmap and plan_fft! #243
Comments
Without FFTW but with an anoymous function, works good
With FFTW without anoymous function, works good too
With FFTW and anoymous function, same error again
|
For the record, this issue has been cross-posted at JuliaLang/julia#45406 |
Sorry for that I just think it may relative to package |
It's always a good practice to leave a reference when you cross-post issues, to avoid multiple people wasting their times independently, instead of working together in a single place. |
(copying from Slack) I think it's because you're communicating plans between workers, which you're not allowed to do (https://discourse.julialang.org/t/fft-plan-cant-be-sent-between-processes/877). The function f that you pass to pmap uses the Tpx defined on the root processor, not the workers, so you'd wanna fix that. When I ran into this issue I just hacked up this to make my life easier, although it's not necessarily the best option if you want more control over your plans: https://github.com/gaurav-arya/WavePropagation.jl/blob/main/src/planned_fft.jl |
I know your point, but what makes these two
|
Seems like this package should add some checks to make sure the plan isn't a C_NULL pointer |
Version info:
Code to reproduce:
Error message:
The text was updated successfully, but these errors were encountered: