I am able to list the following parameters which help in restricting the work items for a device based on the device memory:
I find the explanation for these parameters insufficient and hence I am not able to use these parameters properly. Can somebody please tell me what these parameters mean and how they are used. Is it necessary to check all these parameters?
PS: I have some brief understanding of some of the parameters but I am not sure whether my understanding is correct.
CL_DEVICE_GLOBAL_MEM_SIZE:
CL_DEVICE_LOCAL_MEM_SIZE:
CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE:
CL_DEVICE_MAX_MEM_ALLOC_SIZE:
CL_DEVICE_MAX_WORK_GROUP_SIZE:
CL_DEVICE_MAX_WORK_ITEM_SIZES:
CL_KERNEL_WORK_GROUP_SIZE:
NOTE: All this data is the theoretical limits. But if your kernel uses a resource more than other, ie: local memory depending on the size of the work group, you may not be able to reach the maximum work items per work group, since it is possible you reach first the local memory limit.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.