Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

Nd-range groups

alex2671
Beginner
356 Views
Greetings! I would like to answer a question how the partitioning in nd-range works.

I have a sycl::nd_range<2>(sycl::range<2>(6,3), sycl::range<2>(6,1)...) and expected to partition with 18/6=3 groups, however when i use item.get_group it shows that i have only one, zero number, group. Therefore how to make a 3 groups or, if its impossible with this approach, how to make a loop like in pseudocode:

Total =6
Groups=3
NinGroup=Total/Groups
For(i=0, i<5, i++)
For(ii in TotalNinGroup)
0 Kudos
1 Reply
alex2671
Beginner
325 Views
Solved a problem. I used to obtain group id as get_group(0), however should be get_group(1).
0 Kudos
Reply