Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

further clarify a clCreateBuffer with SVM pointer error condition #1189

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions api/opencl_runtime_layer.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,9 @@ returned in _errcode_ret_:
in the <<memory-flags-table,Memory Flags>> table.
* {CL_INVALID_BUFFER_SIZE} if _size_ is 0, or if _size_ is greater than
{CL_DEVICE_MAX_MEM_ALLOC_SIZE} for all devices in _context_, or if
{CL_MEM_USE_HOST_PTR} is set in _flags_ and _host_ptr_ is a pointer returned by
{clSVMAlloc} and _size_ is greater than the size passed to {clSVMAlloc}.
{CL_MEM_USE_HOST_PTR} or {CL_MEM_COPY_HOST_PTR} is set in _flags_ and
_host_ptr_ is a pointer returned by {clSVMAlloc} and _size_ is greater than
the size passed to {clSVMAlloc}.
* {CL_INVALID_HOST_PTR} if _host_ptr_ is `NULL` and {CL_MEM_USE_HOST_PTR} or
{CL_MEM_COPY_HOST_PTR} are set in _flags_ or if _host_ptr_ is not `NULL`
but {CL_MEM_COPY_HOST_PTR} or {CL_MEM_USE_HOST_PTR} are not set in _flags_.
Expand Down