-
Notifications
You must be signed in to change notification settings - Fork 333
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
Sorting subset of buffer #784
Comments
If the padding is constant, then you should be able to develop something similar to |
I meant you would have to implement your own iterator class similar to strided iterator. |
@jszuppe Are there any guidelines for how to approach this or should I just try to adapt from |
I think |
I know this question has been asked a long time ago, but having just got to using this very cool library, maybe this will help. |
Not sure of a mailing list so I hope posting a use question here is appropriate. I have been able to use
boost::compute::sort
successfully on a general OpenCL buffer. However, I am often dealing with 'padded' buffers that are interpreted as matrices (row-wise storage). For example, the matrixIs actually stored as
So the internal flat buffer would be
How could I use
sort
on just the 'non-padded' elements?Likewise, the column wise may also be padded (less common but might as well include here)
The text was updated successfully, but these errors were encountered: