Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed May 14, 2022
1 parent d22e8ce commit 18ee252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/opencl_runtime_layer.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6121,15 +6121,15 @@ is thread-safe.

// refError

If the program object is created but the link failed, one of two case occur:
If the program object is created but the link failed, one of two cases occur:

1. if _pfn_notify_ is `NULL`, then {CL_LINK_PROGRAM_FAILURE} is returned in _errcode_ret_.
2. if _pfn_notify_ is not `NULL`, then the application should query the linker status of
the program object passed to _pfn_notify_ to check if the link was successful or not.

The application can query the log of the created program object using
{clGetProgramInfo}(_program_, {CL_PROGRAM_BUILD_LOG}, ...)
to get detailed information when the link failed.
to get detailed information when the link has failed.

Otherwise, if the program object is not created, {clLinkProgram}
returns one of the following errors in _errcode_ret_:
Expand Down

0 comments on commit 18ee252

Please sign in to comment.