clMathLibraries / clFFT

a software library containing FFT functions written in OpenCL
Apache License 2.0
620 stars 192 forks source link

Added the ability to launch transforms with an offset for the input and output arrays #227

Open JishinMaster opened 5 years ago

JishinMaster commented 5 years ago

Following the issue #221 ("clFFT offset in cl_mem") that I opened last year, I have added the ability to set the input and output offsets, something that could be done with cuFFT. The offset(s) can be changed like kernel parameters with clfftSetPlanOffsetIn and clfftSetPlanOffsetOut, so that it is not necessary to rebake the plan. I have tested the functionality without the client, which is not operational yet, but works the same way as before if the parameters offsetIn and offsetOut are left untouched.