logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Work-Item_Built-In_Functions - Click an item in the table below for details about that function.

Authors

TheKhronosGroup

Description

       Built-in work-item functions can be used to query the number of dimensions, the global and local work
       size specified to clEnqueueNDRangeKernel(3clc), and the global and local identifier of each work-item
       when this kernel is being executed on a device. The number of dimensions, the global and local work size
       when executing a kernel using the function clEnqueueTask(3clc) is one.

Name

       Work-Item_Built-In_Functions - Click an item in the table below for details about that function.

       ┌─────────────────────────┬─────────────────────────────┐
       │ get_work_dim(3clc)      │ Number of dimensions in use │
       ├─────────────────────────┼─────────────────────────────┤
       │ get_global_size(3clc)   │ Number of global work items │
       ├─────────────────────────┼─────────────────────────────┤
       │ get_global_id(3clc)     │ Global work item ID value   │
       ├─────────────────────────┼─────────────────────────────┤
       │ get_local_size(3clc)    │ Number of local work items  │
       ├─────────────────────────┼─────────────────────────────┤
       │ get_local_id(3clc)      │ Local work item ID          │
       ├─────────────────────────┼─────────────────────────────┤
       │ get_num_groups(3clc)    │ Number of work groups       │
       ├─────────────────────────┼─────────────────────────────┤
       │ get_group_id(3clc)      │ Work group ID               │
       ├─────────────────────────┼─────────────────────────────┤
       │ get_global_offset(3clc) │ Work offset                 │
       └─────────────────────────┴─────────────────────────────┘

Notes

        1. OpenCL Specification
           page 242, section 6.12.1 - Work-Item Functions

The Khronos Group                                  11/18/2024                           WORK-ITEMBUILT-IN(3clc)

See Also

clEnqueueNDRangeKernel(3clc), clEnqueueTask(3clc)

Specification

OpenCLSpecification[1]

See Also