File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
sycl/include/CL/sycl/detail Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,15 @@ class __SYCL_EXPORT AccessorImplHost {
79
79
MElemSize(Other.MElemSize), MOffsetInBytes(Other.MOffsetInBytes),
80
80
MIsSubBuffer(Other.MIsSubBuffer) {}
81
81
82
+ // The resize method provides a way to change the size of the
83
+ // allocated memory and corresponding properties for the accessor.
84
+ // These are normally fixed for the accessor, but this capability
85
+ // is needed to support the stream class.
86
+ // Stream implementation creates an accessor with initial size for
87
+ // work item. But the number of work items is not available during
88
+ // stream construction. The resize method allows to update the accessor
89
+ // as the information becomes available to the handler.
90
+
82
91
void resize (size_t GlobalSize);
83
92
84
93
id<3 > MOffset;
You can’t perform that action at this time.
0 commit comments