Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into HEAD
Browse files Browse the repository at this point in the history
Update  external_memory_win32_name_handle with latest
updates from main.
  • Loading branch information
nikhiljnv committed Jun 27, 2024
2 parents 348d8a5 + f37a868 commit 0d0b4b2
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 132 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 0d0b4b2

Please sign in to comment.