Searching through the NVIDIA forums I found these questions, which are also of interest to me, but nobody had answered them in the last four days or so. Can you help?
Original Forum Post
Digging into OpenCL reading tutorials some things stayed unclear for me. Here is a collection of my questions regarding local and global work sizes.
Must the
global_work_sizebe smaller thanCL_DEVICE_MAX_WORK_ITEM_SIZES? On my machineCL_DEVICE_MAX_WORK_ITEM_SIZES= 512, 512, 64.Is
CL_KERNEL_WORK_GROUP_SIZEthe recommendedwork_group_sizefor the used kernel?
- Or is this the only
work_group_sizethe GPU allows? On my machineCL_KERNEL_WORK_GROUP_SIZE= 512Do I need to divide into work groups or can I have only one, but not specifying
local_work_size?
- To what do I have to pay attention, when I only have one work group?
What does
CL_DEVICE_MAX_WORK_GROUP_SIZEmean? On my machineCL_DEVICE_MAX_WORK_GROUP_SIZE= 512, 512, 64
- Does this mean, I can have one work group which is as large as the
CL_DEVICE_MAX_WORK_ITEM_SIZES?Has
global_work_sizeto be a divisor ofCL_DEVICE_MAX_WORK_ITEM_SIZES? In my codeglobal_work_size= 20.