You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/opencl_runtime_layer.asciidoc
+50-48Lines changed: 50 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4449,60 +4449,62 @@ The _errcode_ret_ is set to {CL_SUCCESS}.
4449
4449
A `NULL` pointer is returned otherwise with one of the following error
4450
4450
values returned in _errcode_ret_:
4451
4451
4452
-
* {CL_INVALID_COMMAND_QUEUE} if _command_queue_ is not a valid host
4453
-
command-queue.
4454
-
* {CL_INVALID_CONTEXT} if context associated with _command_queue_ and
4455
-
_image_ are not the same or if context associated with _command_queue_
4456
-
and events in _event_wait_list_ are not the same.
4457
-
* {CL_INVALID_MEM_OBJECT} if _image_ is not a valid image object.
4458
-
* {CL_INVALID_VALUE} if _origin_ or _region_ is `NULL`.
4459
-
* {CL_INVALID_VALUE} if region being mapped given by (_origin_,
4460
-
_origin_ + _region_) is out of bounds or if values specified in _map_flags_
4461
-
are not valid.
4462
-
* {CL_INVALID_VALUE} if values in _origin_ and _region_ do not follow rules
4463
-
described in the argument description for _origin_ and _region_.
4464
-
* {CL_INVALID_VALUE} if _image_row_pitch_ is `NULL`.
4465
-
* {CL_INVALID_VALUE} if _image_ is a 3D image, 1D or 2D image array object
4466
-
and _image_slice_pitch_ is `NULL`.
4467
-
* {CL_INVALID_EVENT_WAIT_LIST} if _event_wait_list_ is `NULL` and
4468
-
_num_events_in_wait_list_ > 0, or _event_wait_list_ is not `NULL` and
4469
-
_num_events_in_wait_list_ is 0, or if event objects in _event_wait_list_
4470
-
are not valid events.
4471
-
* {CL_INVALID_IMAGE_SIZE} if image dimensions (image width, height,
4472
-
specified or compute row and/or slice pitch) for _image_ are not
4473
-
supported by device associated with _queue_.
4474
-
* {CL_IMAGE_FORMAT_NOT_SUPPORTED} if image format (image channel order and
4475
-
data type) for _image_ are not supported by device associated with
4476
-
_queue_.
4477
-
* {CL_MAP_FAILURE} if there is a failure to map the requested region into
4452
+
* {CL_INVALID_COMMAND_QUEUE}
4453
+
** if _command_queue_ is not a valid host command-queue
4454
+
* {CL_INVALID_CONTEXT}
4455
+
** if the context associated with _command_queue_ and _image_ are not the same
4456
+
** if the context associated with _command_queue_ and events in _event_wait_list_ are not the same
4457
+
* {CL_INVALID_MEM_OBJECT}
4458
+
** if _image_ is not a valid image object
4459
+
* {CL_INVALID_VALUE}
4460
+
** if _origin_ is `NULL`
4461
+
** if _region_ is `NULL`
4462
+
** if the region being mapped specified by _origin_ and _region_ is out of bounds
4463
+
** if values specified in _map_flags_ are not valid
4464
+
** if values in _origin_ and _region_ do not follow the rules described in the argument description for _origin_ and _region_
4465
+
** if _image_row_pitch_ is `NULL`.
4466
+
** if _image_ is a 1D or 2D image array object and _image_slice_pitch_ is `NULL`
4467
+
** if _image_ is a 3D and _image_slice_pitch_ is `NULL`
4468
+
ifdef::cl_khr_mipmap_image[]
4469
+
* {CL_INVALID_MIP_LEVEL}
4470
+
** if the {cl_khr_mipmap_image_EXT} extension is supported and the mip level specified in _origin_ is not a valid level for _image_
4471
+
endif::cl_khr_mipmap_image[]
4472
+
* {CL_INVALID_EVENT_WAIT_LIST}
4473
+
** if _event_wait_list_ is `NULL` and _num_events_in_wait_list_ greater than zero
4474
+
** if _event_wait_list_ is not `NULL` and _num_events_in_wait_list_ is zero
4475
+
** if event objects in _event_wait_list_ are not valid events
4476
+
* {CL_INVALID_IMAGE_SIZE}
4477
+
** if the dimensions for _image_, such as the image width or image height,
4478
+
are not supported by the device associated with _command_queue_
4479
+
* {CL_IMAGE_FORMAT_NOT_SUPPORTED}
4480
+
** if the format for _image_, such as the image channel order or image
4481
+
channel data type, are not supported by the device associated with
4482
+
_command_queue_
4483
+
* {CL_MAP_FAILURE}
4484
+
** if there is a failure to map the requested region into
4478
4485
the host address space.
4479
4486
This error cannot occur for image objects created with
4480
4487
{CL_MEM_USE_HOST_PTR} or {CL_MEM_ALLOC_HOST_PTR}.
4481
-
* {CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST} if the map operation is
4482
-
blocking and the execution status of any of the events in
4483
-
_event_wait_list_ is a negative integer value.
4488
+
* {CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST}
4489
+
** if the map operations is blocking and the execution status of
4490
+
any of the events in _event_wait_list_ is a negative integer value indicating an error.
4484
4491
This error code is <<unified-spec, missing before>> version 1.1.
4485
-
* {CL_MEM_OBJECT_ALLOCATION_FAILURE} if there is a failure to allocate
4486
-
memory for data store associated with _image_.
4487
-
* {CL_INVALID_OPERATION} if the device associated with _command_queue_ does
4488
-
not support images (i.e. {CL_DEVICE_IMAGE_SUPPORT} specified in the
4489
-
<<device-queries-table,Device Queries>> table is {CL_FALSE}).
4490
-
* {CL_INVALID_OPERATION} if _image_ has been created with
4491
-
{CL_MEM_HOST_WRITE_ONLY} or {CL_MEM_HOST_NO_ACCESS} and {CL_MAP_READ} is set
4492
-
in _map_flags_ or if _image_ has been created with {CL_MEM_HOST_READ_ONLY}
4493
-
or {CL_MEM_HOST_NO_ACCESS} and {CL_MAP_WRITE} or
4494
-
{CL_MAP_WRITE_INVALIDATE_REGION} is set in _map_flags_.
4495
-
* {CL_OUT_OF_RESOURCES} if there is a failure to allocate resources required
4496
-
by the OpenCL implementation on the device.
4497
-
* {CL_OUT_OF_HOST_MEMORY} if there is a failure to allocate resources
4498
-
required by the OpenCL implementation on the host.
4499
-
* {CL_INVALID_OPERATION} if mapping would lead to overlapping regions being
4500
-
mapped for writing.
4492
+
* {CL_MEM_OBJECT_ALLOCATION_FAILURE}
4493
+
** if there is a failure to allocate memory for data store associated with _image_
4494
+
* {CL_INVALID_OPERATION}
4495
+
** if the device associated with _command_queue_ does not support images (the query for {CL_DEVICE_IMAGE_SUPPORT} returns {CL_FALSE})
4496
+
** if _image_ has been created with {CL_MEM_HOST_WRITE_ONLY} or {CL_MEM_HOST_NO_ACCESS} and {CL_MAP_READ} is set in _map_flags_
4497
+
** if _image_ has been created with {CL_MEM_HOST_READ_ONLY} or {CL_MEM_HOST_NO_ACCESS} and {CL_MAP_WRITE} or {CL_MAP_WRITE_INVALIDATE_REGION} is set in _map_flags_
4501
4498
ifdef::cl_ext_immutable_memory_objects[]
4502
-
* {CL_INVALID_OPERATION} if _image_ was created with {CL_MEM_IMMUTABLE_EXT}
4503
-
in _flags_ and {CL_MAP_WRITE} or {CL_MAP_WRITE_INVALIDATE_REGION} is set
4504
-
in _map_flags_.
4499
+
** if _image_ was created with {CL_MEM_IMMUTABLE_EXT} in _flags_ and {CL_MAP_WRITE} or {CL_MAP_WRITE_INVALIDATE_REGION} is set in _map_flags_
4505
4500
endif::cl_ext_immutable_memory_objects[]
4501
+
** if mapping would lead to overlapping regions being mapped for writing
4502
+
* {CL_OUT_OF_RESOURCES}
4503
+
** if there is a failure to allocate resources required by the OpenCL
4504
+
implementation on the device
4505
+
* {CL_OUT_OF_HOST_MEMORY}
4506
+
** if there is a failure to allocate resources required by the OpenCL
4507
+
implementation on the host
4506
4508
4507
4509
The pointer returned maps a 1D, 2D or 3D region starting at _origin_ and is
4508
4510
at least _region_[0] pixels in size for a 1D image, 1D image buffer or 1D
0 commit comments