-
Notifications
You must be signed in to change notification settings - Fork 117
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
[CL] Add UR handles to OpenCL adapter #1176
base: main
Are you sure you want to change the base?
[CL] Add UR handles to OpenCL adapter #1176
Conversation
528ca1a
to
26bd60a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1176 +/- ##
==========================================
- Coverage 14.82% 12.43% -2.40%
==========================================
Files 250 241 -9
Lines 36220 36242 +22
Branches 4094 4111 +17
==========================================
- Hits 5369 4506 -863
- Misses 30800 31732 +932
+ Partials 51 4 -47 ☔ View full report in Codecov by Sentry. |
ceb8b8e
to
ff5ebc1
Compare
f7b0de5
to
66d5282
Compare
adb6b3d
to
4777b93
Compare
11b092b
to
ff193b2
Compare
ff193b2
to
2821682
Compare
ab61e80
to
61ba805
Compare
97dbfd0
to
820779f
Compare
820779f
to
78e362b
Compare
78e362b
to
70f7575
Compare
ad7061f
to
50121a6
Compare
f56cf10
to
7252088
Compare
uint32_t incrementReferenceCount() noexcept { return ++RefCount; } | ||
|
||
uint32_t decrementReferenceCount() noexcept { return --RefCount; } |
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.
Reference count and associated member functions is something we should provide a shared abstraction for. That's out of scope for this PR, though. Seeing this just reminded me.
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.
Yeah, good point, that would eliminate a lot of repetition.
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.
Something like this already exists in at least the Native CPU adapter. I'm currently figuring out where this should live as the laoder also has reference counted objects.
ur_result_t checkDeviceExtensions(const std::vector<std::string> &Exts, | ||
bool &Supported) { |
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.
This interface isn't very nice to use. Do we really need to return the ur_result_t
here? Could it just return false
?
This is another issue that can be looked at separately.
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.
Didn't look into this area much but I think this could be addressed in a follow-up that would redesign these extensions helper functions.
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.
Makes sense.
b9c903b
to
250aab9
Compare
4e0653b
to
411993d
Compare
e24d912
to
d8f0aef
Compare
d8f0aef
to
1912b88
Compare
Redesign OpenCL adapter by adding UR handles and get rid of the casting of the UR handles to OPENCL handles.
intel/llvm#12172