cizek
cizek

Reputation: 31

OpenCl max warp and work-group per compute unit

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

Answers (1)

mfa
mfa

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

Related Questions