Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clFFT offset in cl_mem #221

Open
JishinMaster opened this issue Jul 25, 2018 · 2 comments
Open

clFFT offset in cl_mem #221

JishinMaster opened this issue Jul 25, 2018 · 2 comments

Comments

@JishinMaster
Copy link

Hi,
clBLAS, clBLAST, and standards kernels can take an offset parameter.
I have seen no such thing in the clFFT documentation.
Whenever I want to do an FFT which does not starts at the beginning of an array, I have to copy the cl_mem into another cl_mem, and then back into the first one at the end.

Is there a way to do FFTs with offset?

Many thanks.

@preda
Copy link

preda commented Aug 28, 2018

Maybe you can use clCreateSubBuffer

@hajokirchhoff
Copy link

clCreateSubBuffer is not possible here. It has alignment requirements that make it impossible to start at an exact location.

@JishinMaster Your patch would be exactly what I need, but the patch itself is way to big and overly complex. You can clang-tidy over the entire source which really obfuscated your changes. Any chance you can create another patch with just your additions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants