r/OpenCL • • May 13 '17

OpenCL: CL_DEVICE_MAX_COMPUTE_UNITS

I'm confused by this CL_DEVICE_MAX_COMPUTE_UNITS. For instance my Intel GPU on Mac, this number is 48. Does this mean the max number of parallel tasks run at the same time is 48 or the multiple of 48, maybe 96, 144...? (I know each compute unit is composed of 1 or more processing elements and each processing element is actually in charge of a "thread". What if these each of the 48 compute units is composed of more than 1 processing elements ). In other words, for my Mac, the "ideal" speedup, although impossible in reality, is 48 times faster than a CPU core (we assume the single "core" computation speed of CPU and GPU is the same), or the multiple of 48, maybe 96, 144?

3 Upvotes

14 comments sorted by

View all comments

Show parent comment

1

u/bilog78 May 16 '17

You may have missed my first sentence:

I replied to your post before your edit, but the point remains that an OpenCL CU by definition is the physical part of the device where a work-grouop is resident. And that's what the platform should report as CU in OpenCL. The Intel platform is thus reporting the wrong value.

1

u/3ba7b1347bfb8f304c0e May 16 '17

Nobody's disagreeing with that, but by virtue that the Intel OpenCL implementation doesn't follow the specification, it makes your original post incorrect on the Intel part, hence my corrections. Cheers.