OpenCl Working Groups

What happens when I, for example, set the quantity

  • workgroups up to 5120 and localsize 1
  • workgroups up to 2560 and localsize 2
  • workgroups up to 640 and localsize 4

How does this affect my number of work items and access to resources?

+5
source share
1 answer
  • You will have 5120 threads. 5120 groups. 1 thread per group. Each group (1 thread) will receive one processor. You cannot sync them (in the traditional sense).
  • You will have 2560 threads. 1280 groups. 2 threads in each group. Each group (2 threads) will receive one processor. You can synchronize these two streams (in the traditional sense).
  • 640 threads. 160 groups. 4 threads in each group. (4 ) . ( ).

OpenCL . API OpenCL , , .

( . , , ..)

  • . . , 1 . , , , . ? GPU . . . , .

  • .

  • .

, NVIDIA 32 , .

+9

All Articles