Description

Table 1. Built-in Helper Functions

Built-in Function

Description

queue_t get_default_queue(void)

Returns the default device queue. If a default device queue has not been created, CLK_NULL_QUEUE is returned.

ndrange_t ndrange_1D(size_t global_work_size)
ndrange_t ndrange_1D(size_t global_work_size, size_t local_work_size)
ndrange_t ndrange_1D(size_t global_work_offset, size_t global_work_size, size_t local_work_size)
ndrange_t ndrange_2D(const size_t global_work_size[2])
ndrange_t ndrange_2D(const size_t global_work_size[2], const size_t local_work_size[2])
ndrange_t ndrange_2D(const size_t global_work_offset[2], const size_t global_work_size[2], const size_t local_work_size[2])
ndrange_t ndrange_3D(const size_t global_work_size[3])
ndrange_t ndrange_3D(const size_t global_work_size[3], const size_t local_work_size[3])
ndrange_t ndrange_3D(const size_t global_work_offset[3], const size_t global_work_size[3], const size_t local_work_size[3])

Builds a 1D, 2D or 3D ND-range descriptor.

See Also

No cross-references are available

Document Notes

For more information, see the OpenCL C Specification

This page is extracted from the OpenCL C Specification. Fixes and changes should be made to the Specification, not directly.

Copyright (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.