KhronosGroup / KhronosGroup/OpenCL-Docs

Enforcing struct layout

Open
#302 0 comments 0 reactions 0 assignees View on GitHub
agenda OpenCL C Spec
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.