KhronosGroup / KhronosGroup/OpenCL-Docs
Enforcing struct layout
- Dominant language
- Python
- Stars
- 420
- Forks
- 131
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 11
Description
OpenCL C doesn't provide a guarantee for the struct layout particularly alignment aren't specified (which is implementation-defined in C99) therefore making it difficult to exchange data between host and device. Is this something that can be reasonably enforced?
Contributor guide
Research direction
Start by reviewing the OpenCL C struct layout and alignment material in the OpenCL-Docs sources, focusing on the stated host-to-device data exchange problem. Determine whether the specification can define a portable layout guarantee and identify the affected specification sections; done means a concrete, reviewable scope for any proposed clarification or change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- documentation
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100