Skip to content

Commit

Permalink
Specify the order of operations in the loader regarding `clIcdGetPlat…
Browse files Browse the repository at this point in the history
…formIDsKHR`, `clIcdGetFunctionAddressForPlatformKHR`, and `clIcdSetPlatformDispatchDataKHR`.
  • Loading branch information
Kerilk committed Nov 28, 2023
1 parent 0330d29 commit b276376
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/cl_khr_icd.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ will be managed by the ICD Loader. If the `CL_ICD2_TAG_KHR` tag is present but
one of the two functions above is missing, the ICD Loader will ignore the
Vendor ICD and continue on to the next.

For ICD 2 compatible implementations, during initialization, after calling
{clIcdGetPlatformIDsKHR} to query the available platforms, the ICD Loader
will, for each platform, query dispatchable entry points using
{clIcdGetFunctionAddressForPlatformKHR} and then set the platform dispatch
data using {clIcdSetPlatformDispatchDataKHR}.

[[cl_khr_icd-new-procedures-and-functions]]
=== New Procedures and Functions

Expand Down

0 comments on commit b276376

Please sign in to comment.