912 questions
0 votes
2 answers
68 views
Created TEA architecture for fftw package, now TCL stubs library initialisation failure
I can configure, compile and run this tclfftw package (https://gitlab.com/teclabtcltk/tclfftw) unless I enable TCL stubs. Environment: Windows msys2 mingw64 Tcl86 As a workaround I had to do some ...
0 votes
1 answer
76 views
normalization in FFTW3
I am trying to use FFTw3 in Visual Studio using the Intel Fortran compiler. I am confused about normalization. I have setup a r2r spectral to grid plan for sinx siny components. ...
2 votes
1 answer
200 views
ld reports ”library 'fftw3' not found”
trying to get fftw to work. I'm on an M2 macbook, used brew to install fftw. Within my IDE, #include <fftw3.h> doesn't throw an error, and autocomplete correctly lists fftw constants and ...
0 votes
0 answers
81 views
Discrepancy between C++ FFTW and pyFFTW
I'm using the FFTW library in C++, and now need to use it in Python. The common approach to this seems to be the pyFFTW library. I've found a difference between the outputs of very basic programs ...
0 votes
0 answers
19 views
Isolate or no-flux boudnary condition in fftw code
I am working with a C programming code in 2D implemented with spectral method fftw3 package which by default considers periodic boundary condition. The code works with a single index ij = i*nx + j. ...
0 votes
1 answer
59 views
How can I create an x86 fftw dynamic library on macOS/arm?
I'm trying to build a fftw dynamic library for macOS/x86 on a macOS/arm system. I am able to build a dynamic library for arm and a static library for x86, but unable to build a dynamic library for x86....
2 votes
2 answers
148 views
What is the correct way to perform 4D FFT in Cuda by implementing 1D FFT in each dimension using cufftPlanMany API
Cuda does not have any direct implementation of 4D FFT. Hence I want to decompose a 4D FFT into 4 x 1D FFTs into X, Y, Z, and W dimensions. I understand that the cufftPlanMany API is best suited for ...
0 votes
1 answer
89 views
How to use C++ libraries installed with Homebrew within Cmake? (specifically FFTW3)
I'm developing a Max/MSP external on MacOS... in fact, I'm porting a Max/MSP external that I developed on Windows (Visual Studio 2022 toolchain) onto MacOS using Cmake and Clang. The Max external ...
4 votes
1 answer
70 views
FFTW advanced interface with MPI in C
I am using the advance interface of FFTW combined with MPI in order to perform several 1D forward and backward transforms at a time. When the transform is complex to complex (both input and output ...
0 votes
0 answers
105 views
Make PyFFTW Faster Than SciPy Convolve
I have a simple function that performs a sliding dot product using an overlap-add convolution approach: import numpy as np from scipy.signal import oaconvolve import pyfftw import os def ...
2 votes
0 answers
109 views
Poor perf from aocc+amd-fftw in linux with AMD Genoa CPU (compared to built with Intel icpx+mkl)
I have a very simple 3D in-place FFT transform code with FFTW and openmp multi-thread support. I tried to get the best performance in a linux machine (Ubuntu with AMD Genoa CPUs -2 sockets). I built ...
1 vote
1 answer
75 views
Strict aliasing violation in C [duplicate]
Does the following violate strict aliasing rule in C? #include <stdint.h> #include <stdio.h> #include <stdlib.h> int ialignment_of(double *p) { return (int)(((uintptr_t) p) % ...
1 vote
2 answers
115 views
Using unique_ptr and custom deleter with the fftw3 library
When using the fftw3 fast fourier transform (FFT) library, a plan variable is declared and initialised, it is then used to perform some FFTs and subsequently destroyed when the memory is to be freed: #...
1 vote
1 answer
74 views
Differences between OpenCV and FFTW 2D DCT
I am trying to figure out how to match the output from FTTW to OpenCV's 2D DCT. It looks like the output is scaled in some way related to square root of the number of rows and columns, if the rows or ...
0 votes
1 answer
219 views
Conda installed gfortran and gcc cannot compile executables
On Linux 64, after creating an environment, I installed gfortran with conda install conda-forge::gfortran. I see that it installed gfortran 14 and gcc 14. Then I installed openmpi with conda install ...