If I retrieve the value of max work item dimensions using clGetDeviceInfo(CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS), I get the value 8, i.e. 8 dimensions. The documentation also says that the minimum value is 3 - “Maximum dimensions that specify the
global and local work-item IDs used by the data parallel execution model. (Refer to clEnqueueNDRangeKernel). The minimum value is 3.”
And later in the documentation for clEnqueueNDRangeKernel( ), it says that - “work_dim is the number of dimensions used to specify the global work-items and work-items in the work-group. work_dim must be greater than zero and less than or equal to three.”
In clGetDeviceInfo( ), it says minimum is 3 and in clEnqueueNDRangeKernel( ), it says work_dim less than or equal to three.? I am confused here as to why work_dim says the max dimensions can’t exceed 3, while clGetDeviceInfo says 3 is the minimum.