Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
fe34bc7
Merge pull request #1 from oneapi-src/master
JoeOster Aug 11, 2020
632a7a4
Updating License file to no date in the title /*
JoeOster Aug 12, 2020
7a3358d
Merge pull request #2 from oneapi-src/master
JoeOster Aug 19, 2020
0032b0b
Update README.md
JoeOster Aug 19, 2020
dadbdab
Fix FPGA entries
akertesz Aug 19, 2020
11fdd3b
Update README.md
JoeOster Aug 20, 2020
ad94562
Merge pull request #3 from oneapi-src/master
JoeOster Aug 21, 2020
c9f8629
Update README.md
JoeOster Aug 23, 2020
8a450a0
Merge pull request #4 from oneapi-src/master
JoeOster Aug 26, 2020
84ce0f1
removing duplicate samples after transfering to dwarves folders
JoeOster Aug 26, 2020
c5c3880
Update Makefile.win
JoeOster Aug 26, 2020
0ead459
Update Makefile.win
JoeOster Aug 26, 2020
d024a8e
Update Makefile.win.fpga
JoeOster Aug 26, 2020
d5ce16c
Update CMakeLists.txt
JoeOster Aug 27, 2020
a8f34a5
Update CMakeLists.txt
JoeOster Aug 27, 2020
d1d4a6b
Update CMakeLists.txt
JoeOster Aug 27, 2020
2e989df
Merge pull request #5 from oneapi-src/master
JoeOster Aug 27, 2020
ca8ffa4
Merge pull request #6 from oneapi-src/master
JoeOster Sep 15, 2020
828111c
Update README.md
JoeOster Sep 15, 2020
801a485
Update README.md
JoeOster Sep 15, 2020
0bda57a
Merge pull request #7 from oneapi-src/master
JoeOster Sep 29, 2020
357d49b
Update from Legal Approval of 10/05/2020
JoeOster Oct 5, 2020
a989fad
Merge pull request #8 from oneapi-src/master
JoeOster Oct 5, 2020
01f8379
Merge pull request #9 from oneapi-src/master
JoeOster Oct 6, 2020
0f5032f
Create README.md
JoeOster Oct 6, 2020
a643759
Add files via upload
JoeOster Oct 6, 2020
29dd1b9
Merge pull request #10 from oneapi-src/master
JoeOster Oct 7, 2020
b10f0ad
Update README.md
tomlenth Oct 7, 2020
1a68b03
Update sample.json
tomlenth Oct 7, 2020
630bfb4
Update README.md
tomlenth Oct 7, 2020
c51adb5
Update sample.json
tomlenth Oct 7, 2020
e9e91b9
Merge pull request #14 from tomlenth/patch-4
JoeOster Oct 7, 2020
37cb3ea
Merge pull request #13 from tomlenth/patch-3
JoeOster Oct 7, 2020
e1aa6b2
Merge pull request #12 from tomlenth/patch-2
JoeOster Oct 7, 2020
48575d8
Merge pull request #11 from tomlenth/patch-1
JoeOster Oct 7, 2020
7316776
Update README.md
JoeOster Oct 7, 2020
4f422dc
Merge pull request #15 from oneapi-src/master
JoeOster Oct 7, 2020
1fba891
Fixing conflicts
JoeOster Nov 12, 2020
a0a7a1e
Merge branch 'master' of https://github.com/JoeOster/oneAPI-samples
JoeOster Nov 12, 2020
19e5004
ng conflicts
JoeOster Nov 12, 2020
d6048d6
Create README.md
JoeOster Nov 12, 2020
4752f40
Create sample.json
JoeOster Nov 12, 2020
faa5180
Create sample.json
JoeOster Nov 12, 2020
09f07b3
Merge pull request #16 from oneapi-src/master
JoeOster Nov 12, 2020
82d33df
removing franmeworks folder
JoeOster Nov 12, 2020
c7629cd
fixing a issue
JoeOster Nov 12, 2020
e7bb3f7
Fixing an issue
JoeOster Nov 12, 2020
657dc9d
Merge pull request #17 from oneapi-src/master
JoeOster Nov 13, 2020
250aeb6
Merge pull request #18 from oneapi-src/master
JoeOster Nov 17, 2020
410b539
Update hyperlink
JoeOster Nov 18, 2020
4a46d84
update a hyperlin
JoeOster Nov 18, 2020
ea0e17b
fixing hyperlink
JoeOster Nov 18, 2020
c07f5e7
Merge pull request #19 from oneapi-src/master
JoeOster Nov 30, 2020
2d12615
updatereadme.md files w/ grammer corrections
JoeOster Nov 30, 2020
34f0d7d
updatereadme.md files w/ grammer & spelling corrections
JoeOster Nov 30, 2020
a5ae367
Audrey's edits to fpga_compile's README
akertesz Dec 1, 2020
666af56
Disambiguate "compile time" in fpga_compile README
akertesz Dec 1, 2020
084bea3
updatereadme.md files w/ grammer & spelling corrections
JoeOster Dec 1, 2020
d27d423
Merge branch 'master' of https://github.com/JoeOster/oneAPI-samples
JoeOster Dec 1, 2020
546eee9
updatereadme.md files w/ grammer corrections
JoeOster Dec 2, 2020
99385df
updatereadme.md files w/ grammer corrections
JoeOster Dec 3, 2020
b06d2a6
updatereadme.md files w/ grammer corrections
JoeOster Dec 3, 2020
98b5716
updatereadme.md files w/ grammer corrections
JoeOster Dec 3, 2020
d66acf1
updatereadme.md files w/ grammer corrections
JoeOster Dec 3, 2020
2d980c5
Update README.md
JoeOster Dec 3, 2020
5f76de8
Update README.md
JoeOster Dec 3, 2020
4edbc26
Update README.md
JoeOster Dec 3, 2020
626156a
Update README.md
JoeOster Dec 3, 2020
10e66f9
Update README.md
JoeOster Dec 3, 2020
a3a4760
Update README.md
JoeOster Dec 3, 2020
05f4302
Update README.md
JoeOster Dec 3, 2020
8c1d5a2
Update README.md
JoeOster Dec 3, 2020
0c93a66
Update README.md
JoeOster Dec 3, 2020
d526355
Update README.md
JoeOster Dec 3, 2020
326b424
Update README.md
JoeOster Dec 3, 2020
5dbc017
Update README.md
JoeOster Dec 3, 2020
2ccda7f
Update README.md
JoeOster Dec 3, 2020
ef5930f
Update README.md
JoeOster Dec 3, 2020
1905d34
Update README.md
JoeOster Dec 3, 2020
6947958
Update README.md
JoeOster Dec 3, 2020
b751ab3
Update README.md
JoeOster Dec 3, 2020
91b25d2
Update README.md
JoeOster Dec 3, 2020
8eb36f4
Update README.md
JoeOster Dec 3, 2020
9ca097e
Update README.md
JoeOster Dec 3, 2020
833e738
Update README.md
JoeOster Dec 3, 2020
d675738
Update README.md
JoeOster Dec 4, 2020
a742821
Update README.md
JoeOster Dec 4, 2020
de5455d
Update README.md
JoeOster Dec 4, 2020
e6ff2aa
Update README.md
JoeOster Dec 4, 2020
37a0f51
Update README.md
JoeOster Dec 4, 2020
c2e9365
Update README.md
JoeOster Dec 4, 2020
e7c1d39
Update README.md
JoeOster Dec 4, 2020
64d87cd
Update README.md
JoeOster Dec 4, 2020
0a3d875
Update README.md
JoeOster Dec 4, 2020
7a19135
Update README.md
JoeOster Dec 4, 2020
99f844e
Update README.md
JoeOster Dec 4, 2020
8472090
Update README.md
JoeOster Dec 4, 2020
5e22274
Update README.md
JoeOster Dec 4, 2020
012edf1
Update README.md
JoeOster Dec 4, 2020
30d098b
Update README.md
JoeOster Dec 4, 2020
22ba0a4
Update README.md
JoeOster Dec 4, 2020
ea145cf
Update README.md
JoeOster Dec 8, 2020
6e7c8e6
Update README.md
JoeOster Dec 8, 2020
9a554f3
updatereadme.md files w/ corrected window run commands
JoeOster Dec 9, 2020
a2d7a29
Update README.md
JoeOster Dec 9, 2020
e15c117
Remove license files from all samples, except root
JoeOster Dec 15, 2020
3ba0e8c
Readme changes based pn Lincense file requirements
JoeOster Dec 15, 2020
918bc6b
fix conflict
JoeOster Dec 15, 2020
60d170c
Merge branch 'master' into master
JoeOster Dec 16, 2020
a3f4769
removing unused folders
JoeOster Dec 21, 2020
23ab689
Merge branch 'master' of https://github.com/JoeOster/oneAPI-samples
JoeOster Dec 21, 2020
c26350d
Minor fixits to FPGA project template READMEs
akertesz Dec 29, 2020
fc15278
Fix some grammar-check-induced ambiguity in FPGA Reference Design REA…
akertesz Dec 30, 2020
d549b72
Correct name of FPGA PAC D5005 in reference design README files.
akertesz Dec 30, 2020
65de7fa
Fix errors introduced by grammar check in FPGA Design Pattern READMEs
akertesz Dec 30, 2020
0eeac70
Fix errors introduced by Grammarly in FPGA Tools and GettingStarted c…
akertesz Dec 30, 2020
0324241
Fix auto-corrections in READMEs for FPGA Features code samples
akertesz Jan 4, 2021
644ed33
repalcing license file
JoeOster Jan 4, 2021
ec8fc09
repalcing license file
JoeOster Jan 4, 2021
6a00b40
correcting formatting
JoeOster Jan 4, 2021
3e0501c
Update README.md
JoeOster Jan 4, 2021
4132612
Update README.md
JoeOster Jan 4, 2021
a518e6e
Update README.md
JoeOster Jan 4, 2021
ffc8580
Fix Intel FPGA PAC D5005 name in FPGA REAMDEs
akertesz Jan 5, 2021
e84bd70
Merge branch 'master' of https://github.com/JoeOster/oneAPI-samples
akertesz Jan 5, 2021
95cf5db
Update readme titles
JoeOster Jan 8, 2021
5476be0
Updateing readme body
JoeOster Jan 8, 2021
33d1294
Update ISO2DFD readme body
JoeOster Jan 8, 2021
e13c56d
Updating hyperlinks
JoeOster Jan 12, 2021
b938bc3
Revert "Remove license filt stat
JoeOster Jan 13, 2021
551b110
Backing out License.txt removal orifinaly done on December 15
JoeOster Jan 13, 2021
81da9e2
test
JoeOster Jan 14, 2021
b859c01
Revert "Remove license files from all samples, except root"
anjgola Jan 14, 2021
2d95077
Merge pull request #22 from JoeOster/BranchWithTuedayCommit
anjgola Jan 14, 2021
e983e6d
Merge pull request #23 from oneapi-src/master
JoeOster Jan 19, 2021
e737dee
Merge branch 'master' of https://github.com/JoeOster/oneAPI-samples
JoeOster Jan 19, 2021
3d6365d
Create new_sample
JoeOster Feb 4, 2021
2beefd1
Rename new_sample to new_sample.md
JoeOster Feb 4, 2021
1b862b6
Update new_sample.md
JoeOster Feb 4, 2021
c4d5d81
Update new_sample.md
JoeOster Feb 5, 2021
1b7a78e
Merge pull request #24 from oneapi-src/master
JoeOster Feb 5, 2021
d27acee
Update new_sample.md
JoeOster Feb 9, 2021
8983776
Update new_sample.md
JoeOster Feb 9, 2021
348acbf
Merge branch 'master' of https://github.com/JoeOster/oneAPI-samples
JoeOster Feb 12, 2021
4f1f3db
fix conflict
JoeOster Feb 12, 2021
147165d
Merge branch 'oneapi-src-master'
JoeOster Mar 17, 2021
28ae292
Delete Zlib_license.txt
JoeOster Mar 17, 2021
60a3d5e
Merge pull request #26 from oneapi-src/master
JoeOster Mar 17, 2021
47f3d41
dding third party license file
JoeOster Mar 17, 2021
83992ec
Merge pull request #27 from oneapi-src/master
JoeOster Mar 26, 2021
3cc9ee2
Update README.md
JoeOster Mar 26, 2021
a7fcbcf
Update README.md
JoeOster Mar 26, 2021
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updateing readme body
  • Loading branch information
JoeOster committed Jan 8, 2021
commit 5476be0dceea1b41629d987100c212613c67070b
22 changes: 9 additions & 13 deletions DirectProgramming/C++/ParallelPatterns/openmp_reduction/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `openmp_reduction` Sample
# `openmp_reduction` Sample

The openmp_reduction sample is a simple program that calculates pi. This program is implemented using C++ and openMP for Intel(R) CPU and accelerators.
The `openmp_reduction` code sample is a simple program that calculates pi. This program is implemented using C++ and openMP for Intel(R) CPU and accelerators.

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.

Expand All @@ -14,23 +14,17 @@ For comprehensive instructions regarding DPC++ Programming, go to https://softwa
| Time to complete | 10 min

## Purpose
This example demonstrates how to do reduction by using the CPU in serial mode,
the CPU in parallel mode (using OpenMP), the GPU using OpenMP offloading.
This example demonstrates how to do reduction by using the CPU in serial mode, the CPU in parallel mode (using OpenMP), the GPU using OpenMP offloading.

All the different modes use a simple calculation for Pi. It is a well known
mathematical formula that if you integrate from 0 to 1 over the function,
(4.0 / (1+x*x) )dx, the answer is pi. One can approximate this integral
by summing up the area of a large number of rectangles over this same range.
All the different modes use a simple calculation for Pi. It is a well known mathematical formula that if you integrate from 0 to 1 over the function, (4.0 / (1+x*x) )dx, the answer is pi. One can approximate this integral by summing up the area of a large number of rectangles over this same range.

Each of the different functions calculates pi by breaking the range into many
tiny rectangles and then summing up the results.
Each of the different functions calculates pi by breaking the range into many tiny rectangles and then summing up the results.

## Key Implementation Details
This code shows how to use OpenMP on the CPU host as well as using target offload capabilities.

## License
Code samples are licensed under the MIT license. See
[License.txt](https://github.com/oneapi-src/oneAPI-samples/blob/master/License.txt) for details.
Code samples are licensed under the MIT license. See [License.txt](https://github.com/oneapi-src/oneAPI-samples/blob/master/License.txt) for details.

Third party program Licenses can be found here: [third-party-programs.txt](https://github.com/oneapi-src/oneAPI-samples/blob/master/third-party-programs.txt)

Expand All @@ -40,7 +34,7 @@ Third party program Licenses can be found here: [third-party-programs.txt](https
The include folder is located at `%ONEAPI_ROOT%\dev-utilities\latest\include` on your development system".

### Running Samples In DevCloud
If running a sample in the Intel DevCloud, remember that you must specify the compute node (CPU, GPU, FPGA) and whether to run in batch or interactive mode. For more information, see the Intel® oneAPI Base Toolkit Get Started Guide (https://devcloud.intel.com/oneapi/get-started/base-toolkit/)
If running a sample in the Intel DevCloud, remember that you must specify the compute node (CPU, GPU, FPGA) and whether to run in batch or interactive mode. For more information, see the [Intel® oneAPI Base Toolkit Get Started Guide](https://devcloud.intel.com/oneapi/get-started/base-toolkit/)

### On a Linux* System
Perform the following steps:
Expand Down Expand Up @@ -73,6 +67,7 @@ There are no editable parameters for this sample.

### Example of Output (result vary depending on hardware)

```
Number of steps is 1000000

Cpu Seq calc: PI =3.14 in 0.00105 seconds
Expand All @@ -82,3 +77,4 @@ Host OpenMP: PI =3.14 in 0.0010 seconds
Offload OpenMP: PI =3.14 in 0.0005 seconds

success
```
24 changes: 6 additions & 18 deletions DirectProgramming/DPC++/StructuredGrids/iso2dfd_dpcpp/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
# `ISO2DFD` Sample
# `ISO2DFD` Sample

ISO2DFD: Intel® oneAPI DPC++ Language Basics Using
2D-Finite-Difference-Wave Propagation
ISO2DFD: Intel® oneAPI DPC++ Language Basics Using 2D-Finite-Difference-Wave Propagation

The ISO2DFD sample refers to Two-Dimensional Finite-Difference Wave Propagation in Isotropic Media. It is a two-dimensional stencil to simulate a wave propagating in a 2D isotropic medium and illustrates the basics of the DPC++ programming language using direct programming.

A complete code walk-through for this sample can be found at:
https://software.intel.com/en-us/articles/code-sample-two-dimensional-finite-difference-wave-propagation-in-isotropic-media-iso2dfd
A complete code walk-through for this sample can be found [here](https://software.intel.com/en-us/articles/code-sample-two-dimensional-finite-difference-wave-propagation-in-isotropic-media-iso2dfd)

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.
For comprehensive instructions regarding DPC++ Programming, see the [oneAPI Programming Guide](https://software.intel.com/en-us/oneapi-programming-guide) and search based on relevant terms noted in the comments.


| Optimized for | Description
|:--- |:---
| OS | Linux Ubuntu 18.04
Expand All @@ -21,7 +16,6 @@ and search based on relevant terms noted in the comments.
| What you will learn | How to offload the computation to GPU using Intel® oneAPI DPC++/C++ Compiler
| Time to complete | 10 minutes


## Purpose

ISO2DFD is a finite difference stencil kernel for solving the 2D acoustic isotropic wave equation. In
Expand All @@ -37,8 +31,6 @@ the SU Seismic processing library, which has utilities to display seismic wavef
downloaded from John Stockwell’s SeisUnix GitHub* (https://github.com/JohnWStockwellJr/SeisUnix/wiki/
Seismic-Unix-install-on-Ubuntu)

A detailed code walk through can be found at https://software.intel.com/content/www/us/en/develop/documentation/explore-dpcpp-samples-from-intel/top.html#top_STEP3_ISO2DFD.

## Key implementation details

SYCL implementation explained.
Expand All @@ -49,7 +41,6 @@ SYCL implementation explained.
function called inside the kernel performs a computation (it updates a grid point specified by the
global ID variable) for a single time step.


## License

Code samples are licensed under the MIT license. See
Expand All @@ -59,9 +50,7 @@ Third party program Licenses can be found here: [third-party-programs.txt](https

## Building the `iso2dfd` Program for CPU and GPU

> Note: if you have not already done so, set up your CLI
> environment by sourcing the setvars script located in
> the root of your oneAPI installation.
> Note: if you have not already done so, set up your CLI environment by sourcing the setvars script located in the root of your oneAPI installation.
>
> Linux Sudo: . /opt/intel/oneapi/setvars.sh
> Linux User: . ~/intel/oneapi/setvars.sh
Expand Down Expand Up @@ -121,8 +110,7 @@ You can execute the code with different parameters. For example the following c
n1 n2 : Grid sizes for the stencil
Iterations : Number of timesteps.

* Find graphical output for sample execution in the online tutorial at:
https://software.intel.com/en-us/articles/code-sample-two-dimensional-finite-difference-wave-propagation-in-isotropic-media-iso2dfd
* Find graphical output for sample execution in the [online tutorial](https://software.intel.com/en-us/articles/code-sample-two-dimensional-finite-difference-wave-propagation-in-isotropic-media-iso2dfd)

### Example of Output

Expand Down