You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto orig_buffer_ac = orig_buffer.templateget_access<cl::sycl::access::mode::read>();
169
-
auto in_buffer_ac = in_buffer.templateget_access<cl::sycl::access::mode::discard_write>();
170
-
171
-
for (uindex_t c = 0; c < grid_width; c++)
168
+
if (grid_width == max_grid_width && grid_height == max_grid_height)
169
+
{
170
+
in_buffer = orig_buffer;
171
+
}
172
+
else
172
173
{
173
-
for (uindex_t r = 0; r < grid_height; r++)
174
+
auto orig_buffer_ac = orig_buffer.templateget_access<cl::sycl::access::mode::read>();
175
+
auto in_buffer_ac = in_buffer.templateget_access<cl::sycl::access::mode::discard_write>();
176
+
177
+
for (uindex_t c = 0; c < grid_width; c++)
174
178
{
175
-
in_buffer_ac[c][r] = orig_buffer_ac[c][r];
179
+
for (uindex_t r = 0; r < grid_height; r++)
180
+
{
181
+
in_buffer_ac[c][r] = orig_buffer_ac[c][r];
182
+
}
176
183
}
177
184
}
178
185
@@ -204,8 +211,7 @@ class StencilExecutor
204
211
*
205
212
* The new half-buffer is either the upper or the lower half of the given, full buffer, depending on `half`. If `half` is 0, the upper half of the buffer is used, if `half` is 1, the lower half of the buffer is used.
0 commit comments