Skip to content

Commit

Permalink
Bump up spec versions for win32 (#1193)
Browse files Browse the repository at this point in the history
Bump up spec versions for
cl_khr_external_memory_win32 from 1.0.0 to 1.1.0
and cl_khr_external_semaphore_win32 from 0.9.0 to 0.9.1
  • Loading branch information
nikhiljnv authored Jun 27, 2024
1 parent 348d8a5 commit ff38d4d
Show file tree
Hide file tree
Showing 5 changed files with 153 additions and 133 deletions.
2 changes: 1 addition & 1 deletion OpenCL_C.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@ For example:
----------
float8 vf;

float *f = &vf.x; m // is illegal
float *f = &vf.x; // is illegal
float2 *f2 = &vf.s07; // is illegal

float4 *odd = &vf.odd; // is illegal
Expand Down
19 changes: 19 additions & 0 deletions api/opencl_architecture.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -2263,6 +2263,25 @@ typedef cl_uint cl_version;
((patch) & CL_VERSION_PATCH_MASK))
----

[NOTE]
--
The available version of an extension is exposed to the user via a macro
defined by the OpenCL Headers. This macro takes the format of the uppercase
extension name followed by the `_EXTENSION_VERSION` suffix. For example,
`CL_KHR_SEMAPHORE_EXTENSION_VERSION` is the macro defining the version of the
{cl_khr_semaphore_EXT} extension.

The value of this macro is set to the {cl_version_TYPE} of the extension using
the semantic version of the extension. If no semantic version is defined for
the extension, then the value of the macro is set to `0` to represent semantic
version `0.0.0`.

Applications can use these version macros along with the convience macros
defined in this section to guard their code against breaking changes to the API
of extensions, in particular provisional KHR extensions which have yet to
finalize an API.
--

[[version-name-pairing]]
==== Version-Name Pairing

Expand Down
5 changes: 3 additions & 2 deletions scripts/gen_dictionaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def GetFooter():

numberOfFuncs = numberOfFuncs + 1

# Add extension API functions without links:
# Add extension API functions with and without links:
for extension in spec.findall('extensions/extension/require'):
for api in extension.findall('command'):
name = api.get('name')
Expand All @@ -110,7 +110,8 @@ def GetFooter():
# // clGetGLObjectInfo
# :clGetGLObjectInfo: pass:q[*clGetGLObjectInfo*]
apiLinkFile.write('// ' + name + '\n')
apiLinkFile.write(':' + name + ': pass:q[*' + name + '*]\n')
apiLinkFile.write(':' + name + '_label: pass:q[*' + name + '*]\n')
apiLinkFile.write(':' + name + ': <<' + name + ',{' + name + '_label}>>\n')
apiLinkFile.write('\n')

apiNoLinkFile.write('// ' + name + '\n')
Expand Down
Loading

0 comments on commit ff38d4d

Please sign in to comment.