Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenCL FFT lib for GPUs?

Is there any general FFT lib available for running on the GPU using OpenCL? As far as my knowledge goes, Apple sample code for power-of-two OpenCL FFT is the only such code available?

Does any such library exist for non-power-of-two transform sizes? If not, how easy or difficult is it to modify the Apple OpenCL sample?

I am looking at image processing applications, with non-power-of-two transform sizes, and I will have to do a whole bunch of FFTs, a batched FFT.

like image 809
Neo Avatar asked Nov 19 '10 01:11

Neo


2 Answers

Try clFFT developed by AMD. It is aimed at AMD graphic cards, but should work on nVidia GPU's too. It can transform arrays with a radix of 2, 3 and 5 (and combinations there off).

https://github.com/clMathLibraries/clFFT

There are python bindings available

https://github.com/geggo/gpyfft

like image 109
ABDreverhaven Avatar answered Sep 19 '22 13:09

ABDreverhaven


I know of an OpenCL FFT library that is currently under development, but they don't plan on having non-power-of-two transform sizes in the first release.

Can you provide any information about your application? It might help to get the priority for that feature raised if it's something a lot of people can use.

like image 43
Die in Sente Avatar answered Sep 17 '22 13:09

Die in Sente