File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 65
65
// (1) - materialization of a PFWI object
66
66
// (2) - "fixup" of the private variable address.
67
67
//
68
+ // TODO: add support for the case when there are other functions between
69
+ // parallel_for_work_group and parallel_for_work_item in the call stack.
70
+ // For example:
71
+ //
72
+ // void foo(sycl::group<1> group, ...) {
73
+ // group.parallel_for_work_item(range<1>(), [&](h_item<1> i) { ... });
74
+ // }
75
+ // ...
76
+ // cgh.parallel_for_work_group<class kernel>(
77
+ // range<1>(...), range<1>(...), [=](group<1> g) {
78
+ // foo(g, ...);
79
+ // });
80
+ //
68
81
// TODO The approach employed by this pass generates lots of barriers and data
69
82
// copying between private and local memory, which might not be efficient. There
70
83
// are optimization opportunities listed below. Also other approaches can be
You can’t perform that action at this time.
0 commit comments