-
Notifications
You must be signed in to change notification settings - Fork 200
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
[REVIEW] Execution policy class #816
[REVIEW] Execution policy class #816
Conversation
I'm curious why you wish to do this. Are you concerned about the overhead of constructing an execution policy on the fly with the existing |
We are planning on adding a |
I don't think you have to worry about the overhead of constructing the execution policy as it will all get inlined/optimized away anyways. That said, I'm not opposed to an |
@jrhemstad if the overhead isn't very high of creating, then I agree that In that case, Edit: It would look something like this:
|
I renamed the |
Why is deprecation such a concern? |
To pass the style checks please merge the latest from upstream into your PR branch. |
It might indeed never come useful if the API is left unchanged. However, I guess it's probably better to be prepared for such eventuality. The change might come from a change in the Thrust library. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe with this, we can have a non-breaking API update without changing the way this was originally working. cc @jrhemstad @harrism who will be able to help us best here
It would be nice to follow Divye's suggestion to make this a replacement for the existing function that works identically. Also, I believe |
I removed the function and renamed the class as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good for RAFT and doesn't break the existing code. LGTM!
rerun tests |
The PR should be ready to be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@gpucibot merge |
This PR apply modifications to the cuGraph codebase to account for changes in RAFT and RMM : - rapidsai/raft#283 - rapidsai/raft#285 - rapidsai/raft#286 - rapidsai/rmm#816 This PR requires some changes in the cuHornet dependency : rapidsai/cuhornet#52 Authors: - Victor Lafargue (https://github.com/viclafargue) Approvers: - Brad Rees (https://github.com/BradReesWork) - AJ Schmidt (https://github.com/ajschmidt8) - Seunghwa Kang (https://github.com/seunghwak) - Chuck Hastings (https://github.com/ChuckHastings) URL: #1707
This PR apply modifications to the cuML codebase to account for changes in RAFT and RMM : - rapidsai/raft#283 - rapidsai/raft#285 - rapidsai/raft#286 - rapidsai/rmm#816 Authors: - Victor Lafargue (https://github.com/viclafargue) - Dante Gama Dessavre (https://github.com/dantegd) Approvers: - William Hicks (https://github.com/wphicks) - Micka (https://github.com/lowener) - Dante Gama Dessavre (https://github.com/dantegd) - Divye Gala (https://github.com/divyegala) URL: #4077
This PR apply modifications to the cuML codebase to account for changes in RAFT and RMM : - rapidsai/raft#283 - rapidsai/raft#285 - rapidsai/raft#286 - rapidsai/rmm#816 Authors: - Victor Lafargue (https://github.com/viclafargue) - Dante Gama Dessavre (https://github.com/dantegd) Approvers: - William Hicks (https://github.com/wphicks) - Micka (https://github.com/lowener) - Dante Gama Dessavre (https://github.com/dantegd) - Divye Gala (https://github.com/divyegala) URL: rapidsai#4077
Changes currently planned for the RAFT code include updating the RAFT handle for it to store a singleton of a thrust execution policy. An execution policy class would prove useful to write a clearer code. This PR is a proof of concept for it.
cc @divyegala