-
Notifications
You must be signed in to change notification settings - Fork 792
[UR][HIP] Refactor reference counting in UR HIP adapter using new ur::RefCount class #19387
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
base: sycl
Are you sure you want to change the base?
Conversation
cb97307
to
bdf41ce
Compare
bdf41ce
to
6de79b3
Compare
6de79b3
to
d2740e6
Compare
d2740e6
to
3cea679
Compare
3cea679
to
2beb1e2
Compare
2beb1e2
to
11bee99
Compare
11bee99
to
d720bc6
Compare
The CUDA and HIP adapters are very similar and covered by the same reviewer team, it would be totally fine to migrate them together in one PR. If you have the CUDA changes already I'd suggest just adding them here, but otherwise it's fine. |
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.
LGTM
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.
LGTM for command buffer related changes
For #18644
Most UR adapters had their own reference counting of some sort. This adds a new RefCount class and refactors adapter code so all adapters can share the same code for reference counting. This PR handles HIP.
I have kept the pre-existing reference counting members inside stream_queue.hpp, temporarily renaming it as RefCountOld as the CUDA adapter also uses this and want to only change one adapter per PR. I will change this in the final PR for this piece of work.