OpenCL v2.0 s6.5.1 and OpenCL v3.0 s6.11.w both state: Program scope variables can be defined with any valid OpenCL C data type except for those in Other Built-in Data Types.
This patch adds the required check in diagnoseOpenCLTypes.
Differential D112110
[OpenCL] queue_t and ndrange_t can't be defined in program scope. cycheng on Oct 19 2021, 4:27 PM. Authored by
Details
OpenCL v2.0 s6.5.1 and OpenCL v3.0 s6.11.w both state: Program scope variables can be defined with any valid OpenCL C data type except for those in Other Built-in Data Types. This patch adds the required check in diagnoseOpenCLTypes.
Diff Detail Event Timeline
|
To make things concise I would suggest dropping OpenCL v2.0 quote since it is identical to OpenCL v3.0.