blob: 361ddbe4db2d874052518605ccbe4fff373060f2 [file] [log] [blame] [edit]
// Copyright 2019-2024 The Khronos Group. This work is licensed under a
// Creative Commons Attribution 4.0 International License; see
// http://creativecommons.org/licenses/by/4.0/
[[intro]]
== Introduction
This document describes The OpenCL C language extensions that can be supported optionally by the compiler in addition to the functionality from the existing standard language versions. To detect whether extension is supported by the compiler special feature macros can be used `\__opencl_c_<feature name>`. Each feature macro has a value corresponding to the publishing date. Some extensions are available in all versions and others only in the specific versions of OpenCL kernel language (see <<lang_ext_list,the full list of lanuage extension>>).
[[lang_ext_list]]
== Language Extension List
The section contains all optional language extensions listed along with their feature macros as well as OpenCL C version in which the extensions are available .
// Editors note: Please keep this table in alphabetical order!
[cols="5,4,2,4",options="header",]
|====
| *Extension Name*
| *Feature macro*
| *FM Value*
| *OpenCL versions*
| <<opencl_c_variadic_macro,Variadic Macros>>
| __opencl_c_variadic_macro
| TBD
| OpenCL C v1.0 to v2.0
|====
== Language Extensions