Skip to content

Commit d10d149

Browse files
author
Henry Linjamäki
committed
Require either buffer or host_ptr to be non-NULL
1 parent 0a43252 commit d10d149

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

ext/cl_khr_tensor.asciidoc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,10 @@ cl_int clEnqueueTranslateToTensor(
272272
* _blocking_command_ indicate if the read and write operations are
273273
blocking or non-blocking (see below).
274274

275-
* _buffer_ refers to a valid buffer object where data is to be
276-
read into or to be written from when the value of _host_ptr_ is
277-
NULL. If _host_ptr_ is non-NULL then value of _buffer_ is ignored.
278-
279-
* _host_ptr_ is the pointer to buffer in host memory where data is to
280-
be read into or to be written from when the value is non-NULL.
275+
* _buffer_ and _host_ptr_ refer to a valid buffer object / host
276+
allocation where data is to be read into or to be written from.
277+
Either the _buffer_ or _host_ptr_ can be non-NULL in which case the
278+
non-NULL argument is used as the operand for the operation.
281279

282280
* _event_wait_list_ and _num_events_in_wait_list_ specify events that
283281
need to complete before this particular command can be executed. If

0 commit comments

Comments
 (0)