edward_yang

local_work_size ptr vs reqd_work_group_size attr

Discussion created by edward_yang on Oct 22, 2009
Latest reply on Oct 23, 2009 by MicahVillmow
why both ways of defining work group size?

I'm just beginning to learn about OpenCL. My apology if this is a dumb question.

Can someone kindly explain to me why is there the need to have two ways of specifying work group size? I understand that the local_work_size can be specified dynamically in runtime while reqd_work_group_size is static in compile time, but why not just use the local_work_size? What's the possible benefit of using reqd_work_group_size attribute?

Thanks in advance.

Outcomes