Skip to content

Commit 3a902f3

Browse files
committed
2 parents 9fc1933 + 56a9907 commit 3a902f3

File tree

2 files changed

+21
-3
lines changed
  • DirectProgramming

2 files changed

+21
-3
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ The openmp_reduction sample is a simple program that calculates pi. This progra
44

55
For comprehensive instructions regarding DPC++ Programming, go to https://software.intel.com/en-us/oneapi-programming-guide and search based on relevant terms noted in the comments.
66

7-
| Optimized for | Description
8-
| OS | Linux* Ubuntu* 18.04,
7+
8+
| Optimized for | Description
9+
|:--- |:---
10+
| OS | Linux* Ubuntu* 18.04,
911
| Hardware | Skylake with GEN9 or newer
1012
| Software | Intel® oneAPI DPC++ Compiler (beta)
1113
| What you will learn | How to run openMP on cpu as well as GPU offload
@@ -61,7 +63,11 @@ There are no editable parameters for this sample.
6163

6264
### Example of Output (result vary depending on hardware)
6365
Number of steps is 1000000
66+
6467
Cpu Seq calc: PI =3.14 in 0.00105 seconds
68+
6569
Host OpenMP: PI =3.14 in 0.0010 seconds
70+
6671
Offload OpenMP: PI =3.14 in 0.0005 seconds
72+
6773
success

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ The dpc_reduce is a simple program that calculates pi. This program is implemen
55

66
For comprehensive instructions regarding DPC++ Programming, go to https://software.intel.com/en-us/oneapi-programming-guide and search based on relevant terms noted in the comments.
77

8-
| Optimized for | Description
8+
| Optimized for | Description
9+
|:--- |:---
910
| OS | Linux* Ubuntu* 18.04,
1011
| Hardware | Skylake with GEN9 or newer,
1112
| Software | Intel® oneAPI DPC++ Compiler (beta)
@@ -65,12 +66,23 @@ There are no editable parameters for this sample.
6566

6667
### Example of Output
6768
Number of steps is 1000000
69+
6870
Cpu Seq calc: PI =3.14 in 0.00348 seconds
71+
6972
Cpu TBB calc: PI =3.14 in 0.00178 seconds
73+
7074
dpstd native: PI =3.14 in 0.191 seconds
75+
7176
dpstd native2: PI =3.14 in 0.142 seconds
77+
7278
dpstd native3: PI =3.14 in 0.002 seconds
79+
7380
dpstd native4: PI =3.14 in 0.00234 seconds
81+
7482
dpstd two steps: PI =3.14 in 0.00138 seconds
83+
7584
dpstd transform_reduce: PI =3.14 in 0.000442 seconds
85+
7686
success
87+
88+

0 commit comments

Comments
 (0)