Skip to content

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 revert this once the last of the HIP and CUDA PRs are merged.

@martygrant martygrant force-pushed the refCountRefactorCUDA branch from e092022 to e673ed1 Compare July 3, 2025 09:35
@martygrant martygrant force-pushed the refCountRefactorCUDA branch from e673ed1 to 01b85ac Compare July 3, 2025 09:37
@martygrant martygrant force-pushed the refCountRefactorCUDA branch from 01b85ac to 623451c Compare July 9, 2025 14:02
@martygrant martygrant force-pushed the refCountRefactorCUDA branch from 5f0b538 to 98af265 Compare July 9, 2025 16:10
@martygrant martygrant force-pushed the refCountRefactorCUDA branch from 98af265 to 1e137bb Compare July 11, 2025 07:54
@martygrant martygrant force-pushed the refCountRefactorCUDA branch from fa4876f to 4cc4631 Compare July 11, 2025 16:11
@martygrant martygrant marked this pull request as ready for review July 14, 2025 14:41
@martygrant martygrant force-pushed the refCountRefactorCUDA branch from 3669aa8 to fbd5e4c Compare July 16, 2025 08:11
@martygrant martygrant merged commit 657f16f into intel:sycl Jul 16, 2025
36 of 37 checks passed
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.

3 participants