Skip to content
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

[UR] Use templates rather than virtual for stream_queue_t #17858

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

Conversation

RossBrunton
Copy link
Contributor

In a future change, UR is going to restrict handle types from having
vtables. This patch changes the queue base type shared by CUDA and HIP
to a template where each backend specialises its own backend-specific
queue type.

@RossBrunton RossBrunton marked this pull request as ready for review April 4, 2025 14:31
@RossBrunton RossBrunton requested a review from a team as a code owner April 4, 2025 14:31
@RossBrunton RossBrunton requested a review from frasercrmck April 4, 2025 14:31
@RossBrunton
Copy link
Contributor Author

@npmiller Can I get your thoughts on this since you added this handler?

We want to make it so that the first field of a struct is a pointer to the loader's function table, which doesn't really work with virtual methods. Luckily, I think this solution doesn't add any new overhead.

@npmiller
Copy link
Contributor

npmiller commented Apr 4, 2025

Looks great overall, thank you!

In a future change, UR is going to restrict handle types from having
vtables. This patch changes the queue base type shared by CUDA and HIP
to a template.
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.

2 participants