-
Notifications
You must be signed in to change notification settings - Fork 796
[UR] Add reference counting and ext. fn cache to OpenCL adapters #17854
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
d2465d7 to
b95b188
Compare
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.
I like moving the function pointer cache state into the adatper handle but that's not described in this PR description at all
b95b188 to
0b65955
Compare
0b65955 to
7f6f869
Compare
7f6f869 to
ab612c2
Compare
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.
Command buffer LGTM.
ab612c2 to
f8e7719
Compare
Rather than using atexit handles to drop the adapter (which causes ordering issues with SYCL atexit handlers), `urAdapterRetain/Release` now update a reference counter. When the last adapter handle is Released, the adapter is dropped. Since it is now simple to do so, the function cache has been moved to be a member of the adapter itself rather than being a separate global.
f8e7719 to
fc13476
Compare
|
@intel/llvm-gatekeepers Please merge. |
Rather than using atexit handles to drop the adapter (which causes ordering issues with SYCL atexit handlers),
urAdapterRetain/Releasenow update a reference counter. When the last adapter handle is Released, the adapter is dropped.Since it is now simple to do so, the function cache has been moved to be a member of the adapter itself rather than being a separate global.