News for hackers. Stuff that matters.
Re:VkFFT: Vulkan/CUDA/Hip/OpenCL/Level Zero/Metal Fast Fouri... by pid-1 on Wednesday August 02, 2023 @07:56AM (#36969624)
I think FFTW does not run on GPUs.
Re:VkFFT: Vulkan/CUDA/Hip/OpenCL/Level Zero/Metal Fast Fouri... by dsego on Wednesday August 02, 2023 @08:03AM (#36969686)
Right, 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.
Re:VkFFT: Vulkan/CUDA/Hip/OpenCL/Level Zero/Metal Fast Fouri... by geokon on Wednesday August 02, 2023 @08:32AM (#36969993)
As 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

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 :)

Re:VkFFT: Vulkan/CUDA/Hip/OpenCL/Level Zero/Metal Fast Fouri... by johnbcoughlin on Wednesday August 02, 2023 @08:54AM (#36970231)
The 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.
Re:VkFFT: Vulkan/CUDA/Hip/OpenCL/Level Zero/Metal Fast Fouri... by the_svd_doctor on Wednesday August 02, 2023 @05:15PM (#36977604)
FFT 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.
Re:VkFFT: Vulkan/CUDA/Hip/OpenCL/Level Zero/Metal Fast Fouri... by KeplerBoy on Wednesday August 02, 2023 @03:55PM (#36976365)
Nvidia 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