Skip to content

[UR][CUDA] Refactor reference counting in UR CUDA adapter using new ur::RefCount class #19287

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

Draft
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

martygrant
Copy link
Contributor

@martygrant martygrant commented Jul 3, 2025

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 CUDA and I will open more PRs for each adapter in turn.

I have kept the pre-existing reference counting members inside stream_queue.hpp, temporarily renaming it as RefCountOld as the HIP adapter also uses this and want to only change one adapter per PR. I will change this file over when I open a PR for refactoring the HIP adapter.

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

Successfully merging this pull request may close these issues.

1 participant