OpenCL: how to specify the number of computing units
By sergio.rui at Wed, Jan 27 2010 4:17am |
Hi,
I just started programming with OpenCL using a MacBookPro. The specifications say that the graphic card has 32 processing units, but OpenCL says only 4 are present. Why is this? Also how can you change the number of computing units that OpenCL uses?
Regards,
Sérgio Rui Silva




Compute Units
Compute units are your hardware. For example if you have a dual core CPU that would be two.
Your graphics card is also a compute unit.
So you cannot change it unless you alter your hardware.
32 processing units I guess means you have 32 threads in your streaming multiprocessor (SM).
There are some great video tutorials here on this site that cover the fundamentals.