confused by several concept of OpenCL

Discussion created by Fuxianjun on Aug 12, 2010
Latest reply on Aug 12, 2010 by genaganna

I have studied OpenCL for several months, but I can't understand some glossary, does anyone explain for me? I am so grateful.

1.Is the workitems number in wavefront a constant on specific hardware chip ?

2.Is workitem the elementary unit to execute the kernel or wavefront ?

3.On ATI Stream Computing OpenCL, it says wavefronts execute N number of work-items in parallel. Dose it means that two workitems in the same wavefront can execute different kernels ?

4.Is it correct that workgroup is related to software but not hardware ? Is it better to take wavefront size as the reference when specify workgroup size ?

 5.How to query wavefront size from OpenCL API function ?