Reputation: 31
Can I get maximum warp/work-group on one compute unit through some function like clGetDeviceInfo. From what I've found the number depends only on Compute capability.So is there any function that can detect it?
thx jikra
Upvotes: 3
Views: 1072
Reputation: 5087
I think you are looking for clGetKernelWorkGroupInfo.
Specifically, CL_KERNEL_WORK_GROUP_SIZE and CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE will help you tune your work group sizes.
Upvotes: 1