Commit bce423c
committed
[SYCL] Avoid re-computing group_range in nd_item class
This fix is mostly NFC.
Instead of doing costly division operations and re-computing the group_range
inside nd_item class, it is better to call group::get_group_range() that
does not do divisions as the group class keeps the group_range
as a pre-computed field.
Signed-off-by: Vyacheslav N Klochkov <vyacheslav.n.klochkov@intel.com>1 parent 42c6f44 commit bce423c
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
| 89 | + | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
| |||
0 commit comments