Skip to content

[UR][OpenCL] Refactor UR OpenCL reference counting #19176

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

Merged
merged 12 commits into from
Jul 3, 2025

Conversation

martygrant
Copy link
Contributor

@martygrant martygrant commented Jun 26, 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 OpenCL and I will open more PRs for each adapter in turn.

@martygrant martygrant force-pushed the refCountRefactorOpenCL branch from 72564ef to bbed9a0 Compare June 27, 2025 15:03
@martygrant martygrant force-pushed the refCountRefactorOpenCL branch from bbed9a0 to 969d2c0 Compare June 27, 2025 16:12
@martygrant martygrant force-pushed the refCountRefactorOpenCL branch from 969d2c0 to 8d75566 Compare July 2, 2025 09:04
@martygrant
Copy link
Contributor Author

SpecConstants/2020/non-packed-struct-2.cpp failing on cuda tracked here #17285
failing e2e_test_requirements/no_sycl_hpp_in_e2e_tests.cpp test is being fixed with #19260

@martygrant martygrant marked this pull request as ready for review July 2, 2025 15:17
@martygrant martygrant requested review from a team as code owners July 2, 2025 15:17
@martygrant martygrant requested a review from Bensuo July 2, 2025 15:17
…to inherit common reference counting functionality. Update L0 and L0V2 to use this.
…to any relevant handles that need ref counting.
…espace. Add a constructor for the class with a default value and remove use of reset() inside the Adapter constructor, using the RefCount constructor to set default value instead.
@martygrant martygrant force-pushed the refCountRefactorOpenCL branch from 7d2268a to 573ac1d Compare July 2, 2025 16:48
@kbenzie kbenzie removed the request for review from a team July 3, 2025 08:23
Copy link
Contributor

@Bensuo Bensuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Command-buffer changes LGTM!

@martygrant martygrant merged commit 4a2b9c0 into intel:sycl Jul 3, 2025
33 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