|
6 | 6 | #include <CL/sycl.hpp>
|
7 | 7 | #include <iomanip> // setprecision library
|
8 | 8 | #include <iostream>
|
9 |
| - |
10 |
| -// The include folder is located at %ONEAPI_ROOT%\dev-utilities\latest\include |
11 |
| -// on your development system. |
12 | 9 | #include <oneapi/dpl/algorithm>
|
13 | 10 | #include <oneapi/dpl/execution>
|
14 | 11 | #include <oneapi/dpl/iterator>
|
15 |
| - |
16 |
| -// dpc_common.hpp can be found in the dev-utilities include folder. |
17 |
| -// e.g., $ONEAPI_ROOT/dev-utilities//include/dpc_common.hpp |
18 | 12 | #include "dpc_common.hpp"
|
| 13 | +// Many oneAPI code samples share common include files. These |
| 14 | +// include files are installed locally with the product installation |
| 15 | +// and can be located at %ONEAPI_ROOT%\dev-utilities\latest\include |
| 16 | +// on your development system. |
19 | 17 |
|
20 | 18 | using namespace sycl;
|
21 | 19 |
|
@@ -234,8 +232,8 @@ float calc_pi_dpstd_native3(size_t num_steps, int groups, Policy&& policy) {
|
234 | 232 | [=](nd_item<1> item_id) mutable {
|
235 | 233 | auto global_idx = item_id.get_global_id(0);
|
236 | 234 | // 1. Initialization (transform part).
|
237 |
| - tf_init(item_id, global_idx, access_buf, num_steps, |
238 |
| - temp_buf_local); |
| 235 | + tf_init(item_id, global_idx, num_steps, |
| 236 | + temp_buf_local, access_buf); |
239 | 237 | // 2. Reduce within work group
|
240 | 238 | float local_result = brick_reduce(
|
241 | 239 | item_id, global_idx, num_steps, temp_buf_local);
|
@@ -347,8 +345,8 @@ float calc_pi_dpstd_native4(size_t num_steps, int groups, Policy&& policy) {
|
347 | 345 | auto global_idx = item_id.get_global_id(0);
|
348 | 346 | // 1. Initialization (transform part). Fill local
|
349 | 347 | // memory
|
350 |
| - tf_init(item_id, global_idx, access_buf, num_steps, |
351 |
| - temp_buf_local); |
| 348 | + tf_init(item_id, global_idx, num_steps, |
| 349 | + temp_buf_local, access_buf); |
352 | 350 | // 2. Reduce within work group
|
353 | 351 | float local_result = brick_reduce(
|
354 | 352 | item_id, global_idx, num_steps, temp_buf_local);
|
|
0 commit comments