Returns the unique global work-item ID value for dimension identified by dimindx.

size_t get_global_id(uint dimindx)

Description

The global work-item ID specifies the work-item ID based on the number of global work-items specified to execute the kernel. Valid values of dimindx are 0 to get_work_dim() - 1. For other values of dimindx, get_global_id() returns 0.

Also see

Specification