153 karma · joined Sep 28, 2020 (6y ago) · 44 submissions
1.
AMD MI300X and Nvidia H100 benchmarking: VkFFT, cuFFT and rocFFT comparison(old.reddit.com ↗)
1 points · by DTolm · 2y ago · discuss
comment 3y ago · link · parent
I remember VkFFT got a lot of initial traction thanks to Hacker News three years ago. Back then VkFFT was a simple collection of pre-made shaders for powers of two FFTs.
Nowadays it is based on the runtime code generation and optimization platform that supports all the mentioned backends, has a wide range of implemented algorithms (some of which are not even present in other codes) to cover all system sizes and can do things no other GPU FFT library can so far (like real to real transforms, arbitrary dimensional transforms, zero-padding, convolutions and more).
If you have some questions about the library, design choices, functionality or anything else - I will be happy to answer them!
comment 3y ago · link · parent
VkFFT is an efficient GPU-accelerated multidimensional Fast Fourier Transform library for Vulkan/CUDA/HIP/OpenCL/Level Zero and Metal projects. VkFFT aims to provide the community with a cross-platform open-source alternative to vendor-specific solutions while achieving comparable or better performance.
4.
VkFFT – A Performant, Cross-Platform and Open-Source GPU FFT Library(ieeexplore.ieee.org ↗)
2 points · by DTolm · 3y ago · 1 comment
5.
VkResample – real-time Vulkan FFT upscaling(github.com ↗)
3 points · by DTolm · 5y ago · discuss
6.
VkResample – real-time Vulkan FFT upscaling(github.com ↗)
2 points · by DTolm · 5y ago · discuss
comment 6y ago · link · parent
AFAIK, virtualization software right now has no or very limited access to the GPU, so no extensive graphics can be done through it.
comment 6y ago · link · parent
About using simple time per iteration as a benchmark. I used to have this type of benchmark before the last update (see: https://raw.githubusercontent.com/DTolm/VkFFT/f7c8c45717006c...). As you can see, it is not really that informative, as you can't really compare smaller times to big ones here. The layout I use now doesn't make any assumptions about algorithm yet still provides very informative scaling - just by looking at it it is possible to jusge wether techinques like register overutilization actually work. Another important thing is that it can clearly prove that the problem is bandwidth bound and compare at which size VkFFT/cuFFT swwitch from 1 to 2 and then to 3 stage FFT algorithm. It also allows to detect wether algorithm deviates from predicted result.
comment 6y ago · link · parent
I just like the switches as in glsl(shaders) compiler can optimize and unroll them, if the key is provided as a constant. This can provide a non-negligible algorithm speed increase. So over the course of development I came to the point that it is not hard to follow the switches logic for me.
comment 6y ago · link · parent
These benchmarks don't include transfers to and from GPU, as those are done with PCI-E bandwidth (30GB/s) which is really slow compared to VRAM-chip bandwidth (>500GB/s). This is why it is important to have enough VRAM and avoid CPU communications as much as possible.
comment 6y ago · link · parent
I don't know exactly what cuFFT does differently, but I am fairly certain they use very similar memory layout and algorithms behind their code (judging by execution times only).
What should be the main take from this is that Vulkan allows for similar in performance low-level memory control, while being cross platform and open source. I don't think that SPIR-V is more expressive - bet Nvidia wouldn't allow this. But it doesn't prohibit it from still being good.
comment 6y ago · link · parent
The Bluestein's algorithm typically used for arbitrary prime sizes requires both zero-padding and convolutions support which are already efficiently implemented, so it is also not completely out of reach.
comment 6y ago · link · parent
comment 6y ago · link · parent
-It now supports sequences up to 2^32 in all dimensions (algorithmically, in reality limited to allocatable memory size, switch to 64-bit addressing scheme is planned for future release)
-configurations optimized for bigger range of systems and vendors
-benchmarked Radeon VII and RTX 3080, shows that FFT is extremely bandwidth limited on modern GPUs
-VkFFT is able to match and outperform cuFFT on the whole tested range from 2^7 to 2^28 in single precision
-added double and half precision support and precision tests against FFTW on CPU
-improved native zeropadding - up to 3x performance boost
-switched license to MPL 2.0
Thanks for your attention! I am happy to answer any questions.
17.
VkFFT – Vulkan Fast Fourier Transform library(github.com ↗)
123 points · by DTolm · 6y ago · 50 comments
18.
RTX 3080 and Radeon VII benchmark results in VkFFT against cuFFT(github.com ↗)
2 points · by DTolm · 6y ago · discuss
19.
VkFFT – Vulkan Fast Fourier Transform Library Now MPL 2.0(github.com ↗)
2 points · by DTolm · 6y ago · discuss
comment 6y ago · link · parent
-Compute and memory-bound problems. Importance of proper memory management and why it is important to have coalesced global memory accesses and avoid shared memory bank conflicts.
-VkFFT, Vulkan Spirit and memory layout optimizations implemented there
-There was a coding session in the end where I showed a simple out-of-place transposition routine in Vulkan. It was launched on Nvidia GTX 1660Ti, Intel UHD 610 and AMD Radeon Vega RX 10 to illustrate the differences in bandwidth and memory coalescing of the different architectures. Full code with comments can be found here: https://github.com/DTolm/VulkanComputeSamples-Transposition
Hope this can be interesting to people willing to try Vulkan for computations!
P.S. I have added double and half precision support (with precision verification) to VkFFT and a choice to perform FFTs using lookup tables. VkFFT now also has a command line interface and it is possible to build cuFFT benchmark and launch it right after VkFFT one.
21.
Vulkan Compute: sample transposition code and webinar recording(github.com ↗)
2 points · by DTolm · 6y ago · 1 comment