-
Notifications
You must be signed in to change notification settings - Fork 269
add APIs and enums for cl_intel_unified_shared_memory #65
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
add APIs and enums for cl_intel_unified_shared_memory #65
Conversation
kpet
left a comment
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.
Looks good to me after a first quick scan. I couldn't find the changes to the XML though. Did you push them to a specific branch?
This value is not in the latest rev of the spec.
Fixes compilation pre-OpenCL 1.2, where cl_mem_migration_flags is not defined.
|
Thanks! I just created a PR to update the XML file here: KhronosGroup/OpenCL-Docs#192 I've also fixed the headers so CI builds are passing when compiling pre-OpenCL 1.2 (thanks for setting this up!). |
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.
Reviewed this along with KhronosGroup/OpenCL-Docs#192, LGTM.
|
Ping... is anything more needed for this PR? The XML changes have already been merged. |
kpet
left a comment
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.
Fine with that change but some bitfield definitions seem to be missing from the XML.
|
I'm looking into options that do not require defining aliases for the Related spec issue: https://github.com/KhronosGroup/OpenCL-Docs/issues/214 |
Instead of adding aliases to cl_mem_migration_flags and associated enums, restrict the clEnqueueMigrateMemINTEL API to OpenCL 1.2 or newer, which satisfies all current use-cases. If needed, the aliases can be re-introduced at a later date, since adding them does not change the ABI.
|
To get this PR un-stuck for now, let's back out the I will create a PR to back out I've removed WIP and I believe this is ready for review and merging. Thanks! |
alycm
left a comment
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.
LGTM (again), the XML changes removing cl_mem_migration_flags_intel are already merged.
|
Thanks! Merging. |
Adds APIs and enums for the
cl_intel_unified_shared_memoryextension. The draft extension spec can be found here.Also, fixes a few other minor issues:
//) to C comments (/* */).