Skip to content
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

Export sizes of UUID and LUID #19

Merged
merged 1 commit into from
Jun 30, 2021
Merged

Conversation

vmx
Copy link
Contributor

@vmx vmx commented Jun 30, 2021

The uuid_khr(), driver_uuid_khr() and luid_khr() calls return
vectors of unsigned chars. Though they are actually fixed sized
arrays 1. Sometimes it's useful to know their size at compile-time,
hence the constants CL_UUID_SIZE_KHR and CL_LUID_SIZE_KHR
containing the sizes of the UUIDs and LUIDs are exported.

Closes #18.

The `uuid_khr()`, `driver_uuid_khr()` and `luid_khr()` calls return
vectors of unsigned chars. Though they are actually fixed sized
arrays [1]. Sometimes it's useful to know their size at compile-time,
hence the constants `CL_UUID_SIZE_KHR` and `CL_LUID_SIZE_KHR`
containing the sizes of the UUIDs and LUIDs are exported.

[1]: https://www.khronos.org/registry/OpenCL/specs/3.0-unified/html/OpenCL_Ext.html#_additions_to_chapter_4_of_the_opencl_3_0_api_specification

Closes kenba#18.
@kenba kenba linked an issue Jun 30, 2021 that may be closed by this pull request
@kenba kenba merged commit 54beb17 into kenba:develop Jun 30, 2021
@vmx vmx deleted the export-uuid-sizes branch July 1, 2021 08:59
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.

Return UUID as array
2 participants