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.
[ Parent
| on HN ]
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.