KhronosGroup / KhronosGroup/OpenCL-Docs
Clarify program scope variables with subdevices
- Dominant language
- Python
- Stars
- 420
- Forks
- 131
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 11
Description
The OpenCL C 2.0 spec says the following about program scope variables (paragraph 6.5.1):
"These variables in the global address space have the same lifetime as the program, and their values persist between calls to any of the kernels in the program. These variables are not shared across devices. They have distinct storage."
There is nothing specified with respect to whether program scope variables are shared or not between subdevices of the same root device.
This requires some clarification and probably associated conformance tests.
Contributor guide
Research direction
Start with OpenCL C 2.0 specification paragraph 6.5.1 and examine how program scope variable storage should behave across subdevices of one root device. The work is done when the specification explicitly states the sharing rule and associated conformance tests cover that behavior.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation, testing
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100