Skip to content

[SYCL][CUDA] Move base event into the device #8312

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 1 commit into from
Feb 15, 2023
Merged

Conversation

npmiller
Copy link
Contributor

Events are tied to a specific context, calling cuEventElapsedTime with two events created in separate contexts returns a CUDA_ERROR_INVALID_HANDLE error.

So it really doesn't make sense to keep that on the platform, and now that we're using in the primary context and tied it to the device, it makes sense to also move the event base into the device class.

This is technically not a problem right now because we only have one device per platform, but it's a bit cleaner will help towards the multi-device context work.

Events are tied to a specific context, calling `cuEventElapsedTime`
with two events created in separate contexts returns a
`CUDA_ERROR_INVALID_HANDLE` error.

So it really doesn't make sense to keep that on the platform, and now
that we're using in the primary context and tied it to the device, it
makes sense to also move the event base into the device class.

This is technically not a problem right now because we only have one
device per platform, but it's a bit cleaner will help towards the
multi-device context work.
@npmiller npmiller requested a review from a team as a code owner February 10, 2023 20:13
@npmiller npmiller temporarily deployed to aws February 11, 2023 07:46 — with GitHub Actions Inactive
@npmiller npmiller temporarily deployed to aws February 11, 2023 09:39 — with GitHub Actions Inactive
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