Skip to content

Commit 9fe5155

Browse files
terdnerJoeOster
andauthored
Beta09 compiler- Fixed tf_init (oneapi-src#111)
* initial commit of openMP example. Signed-off-by: todd.erdner <[email protected]> * Initial commit of the dpc_reduce Signed-off-by: todd.erdner <[email protected]> * added guid to sample.json Signed-off-by: todd.erdner <[email protected]> * fixed sample.json files. Signed-off-by: todd.erdner <[email protected]> * fixed the include files. Somehow I copied a slightly old repo and it still had <chrono> and the omp_common.hpp file. They have been removed. Signed-off-by: todd.erdner <[email protected]> * added license.txt file ran through formating tool one more time removed all calls to "std::endl" and replaced with " \n" Signed-off-by: todd.erdner <[email protected]> * renamed license.txt to License.txt Signed-off-by: todd.erdner <[email protected]> * added "ciTests" to the sample.json file. It passed the check. Signed-off-by: todd.erdner <[email protected]> * fixed make error Signed-off-by: todd.erdner <[email protected]> * fixed sample.json Signed-off-by: todd.erdner <[email protected]> * removed "2020" from the License.txt file due to update guidelines. Signed-off-by: todd.erdner <[email protected]> * added comment regarding where you can find dpc_common in both files per Paul's comments. Signed-off-by: todd.erdner <[email protected]> * Modified names of the functions to represent what they do (ie. calc_pi_*) per suggestion from Paul. Signed-off-by: todd.erdner <[email protected]> * initial check-in to the C++ repo Signed-off-by: todd.erdner <[email protected]> * put correct comment on dpc_common.hpp Signed-off-by: todd.erdner <[email protected]> * added commenting indicating where they can find corresponding include files. Signed-off-by: todd.erdner <[email protected]> * added comment line Signed-off-by: todd.erdner <[email protected]> * removed openMP repo from DPC++ as it will be moved to C++ directory * Update README.md * Update README.md * Update README.md * Update README.md * fixed category line in sample.json to match exact text expected. * removing openMP from the DPC directory. It has been moved to C++ directory. * fixed tf_init call Signed-off-by: todd.erdner <[email protected]> Co-authored-by: JoeOster <[email protected]>
1 parent ba0e925 commit 9fe5155

File tree

7 files changed

+4
-250
lines changed

7 files changed

+4
-250
lines changed

DirectProgramming/DPC++/ParallelPatterns/dpc_reduce/src/main.cpp

100644100755
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ float calc_pi_dpstd_native3(size_t num_steps, int groups, Policy&& policy) {
234234
[=](nd_item<1> item_id) mutable {
235235
auto global_idx = item_id.get_global_id(0);
236236
// 1. Initialization (transform part).
237-
tf_init(item_id, global_idx, access_buf, num_steps,
238-
temp_buf_local);
237+
tf_init(item_id, global_idx, num_steps,
238+
temp_buf_local, access_buf);
239239
// 2. Reduce within work group
240240
float local_result = brick_reduce(
241241
item_id, global_idx, num_steps, temp_buf_local);
@@ -347,8 +347,8 @@ float calc_pi_dpstd_native4(size_t num_steps, int groups, Policy&& policy) {
347347
auto global_idx = item_id.get_global_id(0);
348348
// 1. Initialization (transform part). Fill local
349349
// memory
350-
tf_init(item_id, global_idx, access_buf, num_steps,
351-
temp_buf_local);
350+
tf_init(item_id, global_idx, num_steps,
351+
temp_buf_local, access_buf);
352352
// 2. Reduce within work group
353353
float local_result = brick_reduce(
354354
item_id, global_idx, num_steps, temp_buf_local);

DirectProgramming/DPC++/ParallelPatterns/openmp_reduction/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

DirectProgramming/DPC++/ParallelPatterns/openmp_reduction/License.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

DirectProgramming/DPC++/ParallelPatterns/openmp_reduction/README.md

Lines changed: 0 additions & 67 deletions
This file was deleted.

DirectProgramming/DPC++/ParallelPatterns/openmp_reduction/sample.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

DirectProgramming/DPC++/ParallelPatterns/openmp_reduction/src/CMakeLists.txt

Lines changed: 0 additions & 24 deletions
This file was deleted.

DirectProgramming/DPC++/ParallelPatterns/openmp_reduction/src/main.cpp

Lines changed: 0 additions & 106 deletions
This file was deleted.

0 commit comments

Comments
 (0)