OpenCL with ClAmdBlas/ClAmdFft

asked 2016-11-27 15:06:29 -0600

jakir gravatar image

updated 2016-11-27 15:07:40 -0600

Hi,

I am trying to build opencv head with opencl support including CLAMDBLAS/CLAMDFFT support. Where do I locate these libraries and which versions are required?

I found a note on the AMD website about the libraries being open sourced - I assume these are the ones

https://github.com/clMathLibraries/clFFT

https://github.com/clMathLibraries/cl...

The opencv build/install is happy and it seems to work (include files are found), but during runtime both cv::ocl::haveAmdBlas and cv::ocl::haveAmdFft returns false. I noticed a mismatch in the expected dll names also (clAmdFft.Runtime.dll vs clFFT.dll). Is this supposed to work?

I am evaluating cuda and opencl for dft (among other things). For DFT on 25 Mpix images Cuda gives me a speedup about 6x, OCL (without blas/fft libs) gives me a slowdown about 0.8x compared to CPU.

-- Best regards, Jakob

edit retag flag offensive close merge delete