Skip to content

Commit ed7f42d

Browse files
authored
Add missing error condition for clCompileProgram and clLinkProgram (#1453)
These error conditions are typically specified for other OpenCL commands. Change-Id: Ic1fa4a3012271f791148bfb51f5ef24711eef073 Signed-off-by: Kevin Petit <kevin.petit@arm.com>
1 parent 4648526 commit ed7f42d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

api/opencl_runtime_layer.asciidoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9756,6 +9756,8 @@ successfully.
97569756
Otherwise, it returns one of the following errors:
97579757

97589758
* {CL_INVALID_PROGRAM} if _program_ is not a valid program object.
9759+
* {CL_INVALID_CONTEXT} if the context associated with _program_ and
9760+
programs in _input_headers_ are not the same.
97599761
* {CL_INVALID_VALUE} if _device_list_ is `NULL` and _num_devices_ is greater
97609762
than zero, or if _device_list_ is not `NULL` and _num_devices_ is zero.
97619763
* {CL_INVALID_VALUE} if _num_input_headers_ is zero and
@@ -9895,6 +9897,8 @@ check if the link was successful or not.
98959897
The list of errors that can be returned are:
98969898

98979899
* {CL_INVALID_CONTEXT} if _context_ is not a valid context.
9900+
* {CL_INVALID_CONTEXT} if the context associated with programs in
9901+
_input_programs_ is not the same as _context_.
98989902
* {CL_INVALID_VALUE} if _device_list_ is `NULL` and _num_devices_ is greater
98999903
than zero, or if _device_list_ is not `NULL` and _num_devices_ is zero.
99009904
* {CL_INVALID_VALUE} if _num_input_programs_ is zero and _input_programs_ is

0 commit comments

Comments
 (0)