Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCL with ClAmdBlas/ClAmdFft

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/clBLAS

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 clBlas.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

OpenCL with ClAmdBlas/ClAmdFft

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/clBLAS

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 clBlas.dll). 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