-
Notifications
You must be signed in to change notification settings - Fork 529
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
Add set operation functions #4
Comments
Boost.Compute has these algorithms implemented for OpenCL: Let me know if you need help integrating them. |
@kylelutz I think ArrayFire's behavior for set operations is slightly different from Boost.Compute. Let me have a look and see if they can be made compatible. |
@kylelutz Do |
Yeah, they have the same behavior and requirements as the standard C++ algorithms ( |
@kylelutz All the set operations have two APIs like this:
ArrayFire does not expect the inputs to be sorted, so the input needs to be sorted internally. We can extend the API to include a default parameter For the first API we can use std (for CPU), thrust (for CUDA) and Boost.Compute (for OpenCL). If you are interested in contributing code, I can create the skeleton and implement the CUDA and CPU backends and leave the OpenCL backend for you. |
I'd be happy to! Probably won't be too much work. |
@kylelutz I just pushed the skeleton and CPU implementation to the "set" branch. Let me know if you want to work on the OpenCL backend for these three functions. |
setunique
setunion
setintersect
The text was updated successfully, but these errors were encountered: