3 ms·
I think FFTW does not run on GPUs.
by pid-1 3y ago
I think FFTW does not run on GPUs.
- dsego 3y agoRight, I know, but what's the advantage of gpu vs cpu for fft, considering cpu-s support some vectorization and you need to format the data and send it to the gpu and back.
- geokon 3y agoAs far as I understand that's not a very meaningful question b/c it depends on what CPU and what GPU. So it's a bit apples to oranges and depends on the user's configuration. There is a benchmark at the very bottom: https://openbenchmarking.org/test/pts/vkfft https://openbenchmarking.org/test/pts/vkfft Also, maybe a bit obvious.. but that even if there is no huge benefit - sending compute to the GPU frees up your CPU/application to do other things .. like keeping your application responsive :)
- johnbcoughlin 3y agoThe FFT is rarely the only thing you're doing, so at the very least you get to keep the data local if it was already on gpu.
- the_svd_doctor 3y agoFFT is memory bound (it’s N log N flops for N bytes, so little arithmetic). GPU HBM is much faster than DRAM, so generally it’s much faster on GPU.
- KeplerBoy 3y agoNvidia has something they call cuFFTW. Its basically a drop-in replacement for FFTW. That's the kind of stuff Nvidia has offered for the last decade while AMD did god knows what. https://docs.nvidia.com/cuda/cufft/index.html https://docs.nvidia.com/cuda/cufft/index.html