OpenCL: how to specify the number of computing units

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

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.