-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL][UR][HIP] s/ScopedContext/ScopedDevice #10672
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
Conversation
Also would it be possible to do this in the CUDA adapter as well? |
I'll leave that for someone else, another time. This is a side effect of work on HIP only |
1fac38f
to
8bf78d7
Compare
8bf78d7
to
8bc2c38
Compare
8bc2c38
to
fd3f7ef
Compare
fd3f7ef
to
a18e9e8
Compare
LGTM |
I'm not sure if I see it in the same way, the fact that it now takes a |
Fair point. I did this because I got confused with the semantics, but yes - it is is still managing the context. I'll think about it a little, and then either close this PR, or convince you I'm right ;) |
I think from the viewpoint of the UR, it makes sense to think of this as a scoped UR device. It is an implementation detail of the plugins that we manage UR devices through native contexts. I think as long as we are using UR, where UR contexts mean something different to native contexts, we should try to make all user facing semantics involving contexts related to UR contexts, and not native contexts. Therefore IMO we should keep this as a (UR) device related feature. |
d1c92cb changed ScopedContext to take a device instead of a context thus sematically changing its meaning. This rename makes it clear what the intented usages are.
a18e9e8
to
7b57951
Compare
I understand where you are coming from and you make a good argument for it, perhaps we could fold in your reasoning in form of a comment, just in case anyone else wonders about the name? @ldrumm did you decide if you'd like to keep this change?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no L0 changes but since L0 reviewers are requested, +1
d1c92cb changed ScopedContext to take a device instead of a context thus sematically changing its meaning. This rename makes it clear what the intented usages are.