-
Notifications
You must be signed in to change notification settings - Fork 667
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
"fftw_execute " case "Segmentation fault" #357
Comments
Hi, you may want to try |
Thanks for your answer. How can I fix this problem? Or provide some solutions? Because the parameters that the fftw_plan_dft_r2c_1d function needs to pass in require the data type of fftw_complex and the data type of double. However, according to this seemingly problem-free code, it will cause "Segmentation fault" |
FFTW does not require all data to be specially aligned. It is faster for specially aligned data (which is provided by (IIRC, x86 itself requires |
I can't reproduce your problem, the program runs fine for me and outputs:
How are you compiling FFTW? Maybe there is some kind of architecture mismatch. |
I wrote a test demo, and I noticed that many test demos online are tested in this way. But every time I run fftw_plan_dft-r2c_1d and then call fftw_execute, there will be a Segmentation fault. Is there an issue with incorrect compilation. In theory, there is no problem with the code. Here is my code:
The text was updated successfully, but these errors were encountered: