File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Publications/GPU-Opt-Guide/sub-group Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,20 +59,20 @@ int main() {
59
59
int aj = BLOCK_SIZE * gj;
60
60
61
61
for (uint k = 0 ; k < BLOCK_SIZE; k++) {
62
- bcol[k] = sg.load (marr.get_pointer () + (ai + k) * N + aj);
62
+ bcol[k] = sg.load (marr.template get_multi_ptr <sycl::access::decorated::yes> () + (ai + k) * N + aj);
63
63
}
64
64
65
65
uint tcol[BLOCK_SIZE];
66
66
for (uint n = 0 ; n < BLOCK_SIZE; n++) {
67
67
if (sgId == n) {
68
68
for (uint k = 0 ; k < BLOCK_SIZE; k++) {
69
- tcol[k] = sg. shuffle ( bcol[n], k);
69
+ tcol[k] = sycl::select_from_group (sg, bcol[n], k);
70
70
}
71
71
}
72
72
}
73
73
74
74
for (uint k = 0 ; k < BLOCK_SIZE; k++) {
75
- sg.store (marr.get_pointer () + (ai + k) * N + aj, tcol[k]);
75
+ sg.store (marr.template get_multi_ptr <sycl::access::decorated::yes> () + (ai + k) * N + aj, tcol[k]);
76
76
}
77
77
});
78
78
});
You can’t perform that action at this time.
0 commit comments