Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2151 commits
Select commit Hold shift + click to select a range
8d9e26c
Update sample.json
jimmytwei Jan 18, 2024
cba0e4b
Fix jsons (#2140)
whitepau Jan 18, 2024
5f3266a
Update sample.json
jimmytwei Jan 19, 2024
b658430
Update sample.json
jimmytwei Jan 19, 2024
a924260
Update sample.json
jimmytwei Jan 19, 2024
e361e79
Fix ONSAM-1677 due to incorrect path in sample.json files (#2141)
zma2 Jan 19, 2024
4ae428f
Add default input values for stream-triad-modified-*.cpp and spec-con…
zma2 Jan 22, 2024
d8bc0d8
Updated README.md with single precision option for batched_linear_sol…
Jan 22, 2024
920e25d
Initial commit (#2120)
shuoniu-intel Jan 23, 2024
071dfaf
Fix ONSAM-1799 (#2144)
zma2 Jan 24, 2024
9358c95
Update sample.json
jimmytwei Jan 24, 2024
a394139
fix for Jira ONSAM-1819 (#2148)
praveenkk123 Jan 24, 2024
a9102a0
Revert "Initial commit (#2120)" (#2149)
shuoniu-intel Jan 24, 2024
01d32f0
Update README.md
jimmytwei Jan 24, 2024
4541c56
Update joint-matrix.cpp
jimmytwei Jan 24, 2024
209b0de
Update iso3dfd.vcxproj
jimmytwei Jan 24, 2024
c529309
Update get_dependencies.sh
jimmytwei Jan 24, 2024
4b8410a
ONSAM-1817 AI-KIT IntelPytorch_Interactive_Chat_Quantization sample f…
krzeszew Jan 25, 2024
392da9e
Update get_dependencies.sh
jimmytwei Jan 25, 2024
d8ea518
Update sample.json
ishaghosh27 Jan 25, 2024
3e17f49
Updated category in sample.json
ishaghosh27 Jan 25, 2024
b7d5de7
Updated category in sample.json
ishaghosh27 Jan 25, 2024
9782dc3
Updated category in sample.json
ishaghosh27 Jan 25, 2024
74e3520
Updated category in sample.json
ishaghosh27 Jan 25, 2024
379550b
Updated category in sample.json
ishaghosh27 Jan 25, 2024
d518f13
Updated category in sample.json
ishaghosh27 Jan 25, 2024
7447e7a
Updated category in sample.json
ishaghosh27 Jan 25, 2024
046225e
Updated category in sample.json
ishaghosh27 Jan 25, 2024
29f2a6f
Updated category in sample.json
ishaghosh27 Jan 25, 2024
34389e6
Updated category in sample.json
ishaghosh27 Jan 25, 2024
eb0b355
Updated category in sample.json
ishaghosh27 Jan 25, 2024
dda902b
Updated category in sample.json
ishaghosh27 Jan 25, 2024
59d2ad7
Updated category in sample.json
ishaghosh27 Jan 25, 2024
33ee05f
Updated category in sample.json
ishaghosh27 Jan 25, 2024
457f031
Updated category in sample.json
ishaghosh27 Jan 25, 2024
525de66
Updated category in sample.json
ishaghosh27 Jan 25, 2024
830f85a
Updated category in sample.json
ishaghosh27 Jan 25, 2024
368c843
Updated category in sample.json
ishaghosh27 Jan 25, 2024
2788754
Updated category in sample.json
ishaghosh27 Jan 25, 2024
0cf7798
Updated category in sample.json
ishaghosh27 Jan 25, 2024
c58c7b0
Updated category in sample.json
ishaghosh27 Jan 25, 2024
7b90a88
Updated category in sample.json
ishaghosh27 Jan 25, 2024
3ed5280
[IRTK fix]: macos vklsample validation for setvars env only (#2156)
MichaelRCarroll-Intel Jan 25, 2024
346cc3d
Update requirements.txt
jimmytwei Jan 26, 2024
2dd10e2
Update README.md
jimmytwei Jan 26, 2024
2e5cabb
FPGA: Add code sample `annotated_class_clean_coding` (#2146)
wangdi4 Jan 26, 2024
0354a9a
FPGA: Add `annotated_ptr` code sample (#2145)
wangdi4 Jan 26, 2024
3b04897
Update get_dependencies.sh
jimmytwei Jan 26, 2024
06787dd
Update sample.json
jimmytwei Jan 26, 2024
9601c9f
Update sample.json
jimmytwei Jan 26, 2024
97d855a
Update sample.json
jimmytwei Jan 26, 2024
7e15e8b
Update sample.json
jimmytwei Jan 26, 2024
1fa42e8
Update sample.json
jimmytwei Jan 26, 2024
25a2f9c
fix for Jiras ONSAM-1823 and ONSAM-1819. (#2158)
praveenkk123 Jan 26, 2024
731ef67
FPGA: Add 2D Convolution Reference Design (#2157)
whitepau Jan 29, 2024
752b4f5
ONSAM-1820 AI-KIT IntelTensorFlow_ModelZoo_Inference_with_FP32_Int8 s…
krzeszew Jan 29, 2024
c7a1d03
[oneDNN][profile_utils.py] fix parse error with oneDNN v3.3.2 (#2112)
shu1chen Jan 29, 2024
1767644
Update sample.json
jimmytwei Jan 29, 2024
393880f
Update sample.json
jimmytwei Jan 29, 2024
ae8ef79
Update sample.json
jimmytwei Jan 29, 2024
edb2bf2
[IRTK] 2024.0 PVC dev hierarchy fixes, readme update, warning removal…
MichaelRCarroll-Intel Jan 29, 2024
6ef0e52
ONSAM-1820 AI-KIT IntelTensorFlow_ModelZoo_Inference_with_FP32_Int8 s…
krzeszew Jan 30, 2024
00d792b
Update sample.json
jimmytwei Jan 30, 2024
116a626
update target device, 'Agilex' replaced by 'Agilex7' (#2162)
whitepau Jan 30, 2024
bda6ea7
updated sample.json & removed unnecessary files (#2163)
Ankur-singh Jan 31, 2024
bef914a
updated setvars path for windows fails (#2166)
Ankur-singh Jan 31, 2024
1347932
[IRTK] mac os fixes onsam 1782 (#2167)
MichaelRCarroll-Intel Jan 31, 2024
9a365db
Error handling (#2165)
louie-tsai Jan 31, 2024
acf6ca2
FPGA: constrain while(1) loops in the convolution2d sample (#2168)
whitepau Feb 1, 2024
e2c2559
updated AMX samples (#2169)
Ankur-singh Feb 1, 2024
bc4a972
[IRTK] ONSAM-1782 macosstb (#2173)
MichaelRCarroll-Intel Feb 2, 2024
fcf7c16
Fix ONSAM-1812 (#2172)
zma2 Feb 2, 2024
4cd1ac9
updated sample.json to skip execution in CI (#2171)
Ankur-singh Feb 2, 2024
3fbac3e
Removed tutorial_vtune_profiling.ipynb conversion (#2170)
Ankur-singh Feb 2, 2024
6e605f2
[IRTK] ONSAM-1782 MacOS destructor warning fix, samples.json validati…
MichaelRCarroll-Intel Feb 3, 2024
2dc9237
FPGA: Update links to point to the correct branch and fix some broken…
yuguen Feb 5, 2024
8710e70
Update README.md
jimmytwei Feb 7, 2024
279df3f
Update sample.json
jimmytwei Feb 8, 2024
79ee91c
Update sample.json
jimmytwei Feb 8, 2024
fb47ee0
FPGA: Stop using variable length arrays in FPGA samples (#2183)
yuguen Feb 9, 2024
79df173
Update release.json
jimmytwei Feb 13, 2024
da1625e
FPGA: update `streaming_data_interfaces` to use correct type (#2185)
whitepau Feb 14, 2024
621bb87
[IRTK] stb copied local, docs rework for base prereq (#2186)
MichaelRCarroll-Intel Feb 14, 2024
6942b6e
Fix ONSAM-1721 (#2178)
Feb 14, 2024
29a7fdd
Update sample.json
jimmytwei Feb 14, 2024
7f04d0c
Update License.txt
jimmytwei Feb 14, 2024
a92571c
Update Makefile
jimmytwei Feb 14, 2024
1741a24
Update README.md
jimmytwei Feb 14, 2024
9e78519
Update sample.json
jimmytwei Feb 14, 2024
fb9ba07
Update sample.json
jimmytwei Feb 14, 2024
1710b45
Update sample.json
jimmytwei Feb 15, 2024
f76332c
feat: Add Text Generation with Itex LSTM sample (#2004)
nedo99 Feb 15, 2024
ea8e72e
Add a new sample: american options (#2176)
andreyfe1 Feb 15, 2024
18e63ab
Update sample.json
jimmytwei Feb 16, 2024
be6b829
Update sample.json
jimmytwei Feb 16, 2024
bf3d765
Update sample.json
jimmytwei Feb 16, 2024
e3cf0ef
Update sample.json
jimmytwei Feb 16, 2024
c147d5d
Update sample.json
jimmytwei Feb 16, 2024
d66f78e
Update sample.json
jimmytwei Feb 16, 2024
c10d498
Update CMakeLists.txt
jimmytwei Feb 16, 2024
3e655bd
Update sample.json
jimmytwei Feb 16, 2024
a42c72b
Update sample.json
jimmytwei Feb 16, 2024
5f22e00
Update sample.json
jimmytwei Feb 16, 2024
276f76c
Update sample.json
jimmytwei Feb 16, 2024
58828c3
Update sample.json
jimmytwei Feb 16, 2024
9d91de7
standarized IPEX, ITEX & INC abbrevations (#2181)
Ankur-singh Feb 16, 2024
36db6af
FPGA: Add simulator target for the CRR sample (#2192)
intel-jisheng1 Feb 20, 2024
7b868e1
FPGA: Remove fpga_register annotations from fifo_sort (#2193)
justin-rosner Feb 20, 2024
a11a79e
FPGA: reduce use of mallocs (#2194)
yuguen Feb 21, 2024
005ceed
New sample (#2195)
vidyalathabadde Feb 21, 2024
0526d1e
added dwtHaar1D SYCL migration sample (#2190)
Feb 21, 2024
87b1d02
Adding simpleAtomicIntrincis SYCL Migration Sample (#2188)
AvijitBag07 Feb 21, 2024
3f84609
Adding ScalarProd SYCL Migration Sample (#2187)
Feb 21, 2024
8c57fda
Update sample.json
jimmytwei Feb 21, 2024
4045210
Update sample.json
jimmytwei Feb 21, 2024
091b709
Update sample.json
jimmytwei Feb 21, 2024
7398576
Update sample.json
jimmytwei Feb 22, 2024
d0fad08
Update sample.json
jimmytwei Feb 22, 2024
86f6679
Update sample.json
jimmytwei Feb 22, 2024
e4a7e65
Update sample.json
jimmytwei Feb 22, 2024
f944e7b
Update sample.json
jimmytwei Feb 22, 2024
5091524
Update sample.json
jimmytwei Feb 22, 2024
49fa71c
Added CudaOpenMP migrated SYCL code (#2196)
AvijitBag07 Feb 22, 2024
7fdce37
FPGA: Added information about how to obtain BSP information in README…
yuguen Feb 22, 2024
83dd982
Applying new template to one AI Getting Started sample (#2182)
Marina-Zubova Feb 23, 2024
d280a95
Update sample.json
jimmytwei Feb 23, 2024
8e55edf
Update sample.json
jimmytwei Feb 23, 2024
298366d
Update sample.json
jimmytwei Feb 23, 2024
17c8b14
Update sample.json
jimmytwei Feb 23, 2024
f924308
Update sample.json
jimmytwei Feb 23, 2024
3f634f3
Update sample.json
jimmytwei Feb 23, 2024
dde1c6b
Update sample.json
jimmytwei Feb 23, 2024
3c5cfdc
Update sample.json
jimmytwei Feb 23, 2024
52475b0
Update simpleCudaGraphs.dp.cpp
jimmytwei Feb 23, 2024
61b1684
Update sample.json
jimmytwei Feb 24, 2024
ea02dd5
Update sample.json
jimmytwei Feb 24, 2024
1765a85
Update sample.json
jimmytwei Feb 24, 2024
b6510cc
Update sample.json
jimmytwei Feb 24, 2024
bfcc3ae
Update sample.json
jimmytwei Feb 24, 2024
b649184
Update README.MD
ishaghosh27 Mar 4, 2024
e24fcee
FPGA: reduce `loop_caried_dependency` design size to fit in all devic…
yuguen Mar 5, 2024
41b3f52
Update README.MD
ishaghosh27 Mar 6, 2024
fa124c1
Update makefile
jimmytwei Mar 14, 2024
1fab052
Update makefile
jimmytwei Mar 14, 2024
35bf5fc
Update README.md
jimmytwei Mar 14, 2024
1eafcb8
Removed IntelAIKitContainer_GettingStarted sample (#2217)
jimmytwei Mar 14, 2024
62f0921
Disabled_Atomic_Inr_And_Atomic_Dec (#2216)
AvijitBag07 Mar 14, 2024
b28e191
Update makefile
jimmytwei Mar 15, 2024
9915bd0
Update makefile
jimmytwei Mar 15, 2024
dacb7bc
Update makefile
jimmytwei Mar 15, 2024
0549665
Update enabling_automixed_precision_for_transfer_learning_with_tensor…
jimmytwei Mar 16, 2024
2749723
Update requirements.txt
jimmytwei Mar 16, 2024
ad4f36c
FPGA: Document compiler bug exposed by `use_library` tutorial on Wind…
whitepau Mar 18, 2024
0b2340f
Update README.md
jimmytwei Mar 18, 2024
945fd10
Update README.md (#2211)
ZhaoqiongZ Mar 18, 2024
ad7d8cc
Update README.md
jimmytwei Mar 18, 2024
5b891a5
Update sample.json
jimmytwei Mar 18, 2024
c2e05c2
Update sample.json
jimmytwei Mar 18, 2024
e3b9a65
[ONSAM-1854] Fix for IntelPython_Numpy_Numba_dpex_kNN failure (#2230)
krzeszew Mar 19, 2024
6b47b03
Update sample.json
jimmytwei Mar 19, 2024
94389b3
Update sample.json
jimmytwei Mar 19, 2024
2f7f1ea
Update sample.json
jimmytwei Mar 19, 2024
7d17d3c
Update sample.json
jimmytwei Mar 19, 2024
b70eff7
Update sample.json
jimmytwei Mar 19, 2024
650bf90
Update sample.json
jimmytwei Mar 19, 2024
40f9997
Update README.md
jimmytwei Mar 19, 2024
db94511
Update ResNet50_Inference.ipynb
jimmytwei Mar 19, 2024
4d41be5
Update sample.json
jimmytwei Mar 19, 2024
347b04c
Update sample.json
jimmytwei Mar 19, 2024
0d5a714
Update requirements.txt
jimmytwei Mar 19, 2024
7f260ea
Update requirements.txt
jimmytwei Mar 19, 2024
1ef7962
Update sample.json
jimmytwei Mar 20, 2024
29c814b
IRTK_Learning_Path initial commit (#2237)
robmariv Mar 20, 2024
4dbbad8
Update sample.json
jimmytwei Mar 20, 2024
1efdf74
Update sample.json
jimmytwei Mar 20, 2024
401909f
Update sample.json
jimmytwei Mar 20, 2024
a22a7dc
Update sample.json
jimmytwei Mar 20, 2024
1e7fa34
Update sample.json
jimmytwei Mar 20, 2024
4f438f9
Update sample.json
jimmytwei Mar 20, 2024
6a251b6
Update sample.json
jimmytwei Mar 20, 2024
7098866
Modify the readme based on the template (#2222)
wangkl2 Mar 20, 2024
07f11bd
Update run_CPU.sh
jimmytwei Mar 20, 2024
f2d3c51
Update run_GPU.sh
jimmytwei Mar 20, 2024
01f3198
Update sample.json
jimmytwei Mar 20, 2024
c116feb
Update sample.json
jimmytwei Mar 20, 2024
b5b5d36
Update sample.json
jimmytwei Mar 20, 2024
5407f54
Update sample.json
jimmytwei Mar 20, 2024
9417ddd
Update sample.json
jimmytwei Mar 21, 2024
195b747
--force in all sh's, new run_CPU_CI.sh and run_GPU_CI.sh, new guids (…
robmariv Mar 21, 2024
3af6e16
Update binomial.hpp
jimmytwei Mar 21, 2024
479f025
Update binomial_main.cpp
jimmytwei Mar 21, 2024
450b26b
Update binomial_sycl.cpp
jimmytwei Mar 21, 2024
ba0dc69
Update black_scholes.hpp
jimmytwei Mar 21, 2024
0032d4b
Update black_scholes_sycl.cpp
jimmytwei Mar 21, 2024
c857966
Update montecarlo.hpp
jimmytwei Mar 21, 2024
7fb3abe
Update montecarlo_main.cpp
jimmytwei Mar 21, 2024
dcc8669
Update sample.json
jimmytwei Mar 21, 2024
2061438
Update sample.json
jimmytwei Mar 21, 2024
be52518
Update sample.json
jimmytwei Mar 21, 2024
a09775a
IRTK_LP script perms, script typo fix (#2255)
MichaelRCarroll-Intel Mar 21, 2024
9807fec
Added C++ to sycl migration samples (#2256)
jimmytwei Mar 21, 2024
5dd4427
Update github-pages.yml
jimmytwei Mar 21, 2024
751c1aa
Update sample.json
jimmytwei Mar 21, 2024
75e3ed8
Update sample.json
jimmytwei Mar 22, 2024
6600a7f
Update sample.json
jimmytwei Mar 22, 2024
d72b573
Update sample.json
jimmytwei Mar 22, 2024
aa2bf33
Update sample.json
jimmytwei Mar 22, 2024
2c72208
Update pair_wise_kernel.py
jimmytwei Mar 22, 2024
376ede9
Update sample.json
jimmytwei Mar 22, 2024
9adf93e
Update sample.json
jimmytwei Mar 22, 2024
b45b0a8
Update sample.json
jimmytwei Mar 22, 2024
3cc62f9
Update sample.json
jimmytwei Mar 22, 2024
62e3eff
Update sample.json
jimmytwei Mar 22, 2024
84d1404
Update sample.json
jimmytwei Mar 22, 2024
237fc01
Update kmeans_kernel_atomic.py
jimmytwei Mar 22, 2024
d3bb032
Update sample.json
jimmytwei Mar 22, 2024
c891dd2
Update sample.json
jimmytwei Mar 22, 2024
82977b1
Update sample.json
jimmytwei Mar 22, 2024
cbc36bc
Update README.md (#2250)
raistefintel Mar 22, 2024
701c426
Update readme.md (#2252)
raistefintel Mar 22, 2024
0445d8c
template 2024.1 (#2246)
raistefintel Mar 22, 2024
3a64b1a
template 2024.1 (#2244)
raistefintel Mar 22, 2024
55979c4
Update README.md (#2233)
raistefintel Mar 22, 2024
bf201df
Update readme.md
jimmytwei Mar 22, 2024
7de13bd
Rename IntelModin_GettingStarted.ipynb to Modin_GettingStarted.ipynb …
raistefintel Mar 22, 2024
c430674
Rename IntelModin_Vs_Pandas.ipynb to Modin_Vs_Pandas.ipynb (#2248)
raistefintel Mar 22, 2024
9a9eba6
Renamed Modin folders (#2257)
jimmytwei Mar 22, 2024
647e08e
Update README.md
jimmytwei Mar 22, 2024
f2882b6
Update README.md
jimmytwei Mar 25, 2024
4f58547
Update README.md
jimmytwei Mar 25, 2024
7152d72
Update README.md
jimmytwei Mar 25, 2024
d2d5a60
Update README.md
jimmytwei Mar 25, 2024
171abd1
Update sample.json
jimmytwei Mar 25, 2024
f4a667e
Update sample.json
jimmytwei Mar 25, 2024
70f071e
Update profile_utils.py
jimmytwei Mar 26, 2024
b1915dd
Update sample.json
jimmytwei Mar 26, 2024
e4e4826
Update Mandel.hpp
jimmytwei Mar 26, 2024
f6a8838
Update profile_utils.py
jimmytwei Mar 26, 2024
9155a69
IRTK Learning Path README.md Max 2-tile env var (#2265)
MichaelRCarroll-Intel Mar 26, 2024
96f84f8
Update README.md
ishaghosh27 Mar 26, 2024
83fdae7
Update sample.json
jimmytwei Mar 26, 2024
19ac7bf
Update sample.json
jimmytwei Mar 27, 2024
85e5966
Update sample.json
jimmytwei Mar 27, 2024
65128bf
Update index.html
jimmytwei Mar 27, 2024
dd435d6
Bump transformers from 4.30.0 to 4.36.0 in /AI-and-Analytics/Features…
dependabot[bot] Mar 27, 2024
c87dbc2
[oneMKL] Fix batched linear solver sample page fault (#2281)
sknepper Apr 8, 2024
9fa0a0f
Git clone readme update (#2277)
ishaghosh27 Apr 14, 2024
ccd57a1
Update Modin* name (#2295)
raistefintel May 2, 2024
e46483c
Update README.md
yinghu5 May 16, 2024
10b6f57
Update README.md
yinghu5 May 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/new_sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Request to add a oneAPI Sample
about: Use this template to request to add a new Code Sample
title: 'Request to Add a oneAPI Sample <YourSampleName>'
labels: 'enhancement'
assignees: Project Manager
---

## Summary
This is a request for a new code Sample called `YourSampleName`

## Purpose
Answer the following questions
* What specifically is this code sample trying to show?
* Why is this important to the oneAPI ecosystem?

## Domain
Please supply what [Domain](https://github.com/oneapi-src/oneAPI-samples/wiki/Reviewers-and-Domain-Experts) that you feel represents your Code Sample. (Best Effort)

## Description
Include a short Description of what the sample while Demonstrate and why it is important to the ecosystem.

## Dependencies
Please list any dependencies, libraries and images, etc and urls of the download locations

## Proposed folder Location
Please include the proposed folder location for your sample to reside

## Checklist
[ ] Samples Working Group Permission accepted on <Insert Date>

52 changes: 37 additions & 15 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# Description
# Existing Sample Changes
## Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)
Fixes Issue#

## External Dependencies

List any external dependencies created as a result of this change.

## Type of change

Please delete options that are not relevant. Add a 'X' to the one that is applicable.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Sample Migration (Moving sample from old repository after completing checklist established)
- [ ] Implement fixes for ONSAM Jiras

# How Has This Been Tested?
## How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Expand All @@ -21,20 +26,37 @@ Please describe the tests that you ran to verify your changes. Provide instructi
- [ ] Visual Studio
- [ ] Eclipse IDE
- [ ] VSCode
- [ ] When compiling the compliler flag "-Wall -Wformat-security -Werror=format-security" was used

# Checklist for Moving samples:
Links and Details can be found in the samples WG Teams Files.
**_Delete this line and everything below if this is not a PR for a new code sample_**

- [ ] Review sample design with domain reviewers https://github.com/oneapi-src/oneAPI-samples/wiki/Reviewers-and-Domain-Experts
- [ ] Implement coding guidelines and ensure code quality.
- [ ] Adhere to sample.json specification. https://github.com/oneapi-src/oneAPI-samples/wiki/sample-json-specification
- [ ] Run jsonlint on sample.json to verify json syntax. www.jsonlint.com
**_Delete this line and all above it if this PR is for a new code sample_**
# Adding a New Sample(s)

## Description

Please include a description of the sample

## Checklist
Administrative
- [ ] Review sample design with the appropriate [Domain Expert](https://github.com/oneapi-src/oneAPI-samples/wiki/Reviewers-and-Domain-Experts): <insert Name Here>
- [ ] If you have any new dependencies/binaries, inform the oneAPI Code Samples Project Manager

Code Development
- [ ] Implement coding guidelines and ensure code quality. [see wiki for details](https://github.com/oneapi-src/oneAPI-samples/wiki/General-Code-Guidelines)
- [ ] Adhere to readme template
- [ ] Ensure/create CI test configurations for sample (ciTests field) https://github.com/oneapi-src/oneAPI-samples/wiki/sample-json-ci-test-object
- [ ] Enforce format via clang-format config file
- [ ] Adhere to sample.json specification. https://github.com/oneapi-src/oneAPI-samples/wiki/sample-json-specification
- [ ] Ensure/create CI test configurations for sample (ciTests field) https://github.com/oneapi-src/oneAPI-samples/wiki/sample-json-ci-test-object
- [ ] Run jsonlint on sample.json to verify json syntax. www.jsonlint.com

Security and Legal
- [ ] OSPDT Approval (see Project Manager for assistance)
- [ ] Compile using the following compiler flags and fix any warnings, the falgs are: "/Wall -Wformat-security -Werror=format-security"
- [ ] Bandit Scans (Python only)
- [ ] Virus scan

Review
- [ ] Review DPC++ code with Paul Peterseon. (GitHub User: pmpeter1)
- [ ] Review readme with Tom Lenth or Joe Oster. (GitHub User: JoeOster)
- [ ] Review readme with Tom Lenth(@tomlenth) and/or Project Manager
- [ ] Tested using Dev Cloud when applicable
- [ ] Implement fixes for ONSAM Jiras
- [ ] If you have new dependencies/binaries, inform Samples Project Manager Swapna R Dontharaju (@srdontha) or @JoeOster

Binary file added .github/images/FileStructure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 81 additions & 0 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: github-samples-app

on:
push:
branches:
- master

workflow_dispatch:

# schedule:
# - cron: '55 13 * * *'

# Top-level default; empty/no permissions
permissions: {}

jobs:
pages:
name: Build GitHub Pages
runs-on: ubuntu-latest
permissions:
contents: write
# Above required for publishing to gh-pages; see auth on Ln 67-68

steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"

- uses: actions/checkout@v3
name: Check out app/dev # checks out app/dev in top-level dir
with:
ref: 'refs/heads/app/dev'

- uses: actions/checkout@v3
name: Check out master # checks out master in subdirectory
with:
ref: 'refs/heads/master'
path: master

- name: Build JSON DB
run: |
python3 -m pip install -r src/requirements.txt
echo master
python3 src/db.py master

- name: Remove JSON pre-prod
run: |
rm -rf src/docs/sample_db_pre.json

- name: Build Sphinx
run: |
python3 -m sphinx -W -b html src/docs/ src/docs/_build/
echo $PWD
echo ${{ github.ref }}

- name: Add GPU-Occupancy-Calculator
env:
GPU_OCC_CALC: src/docs/_build/Tools/GPU-Occupancy-Calculator/
run: |
mkdir -p ${GPU_OCC_CALC}
cp -v ${{ github.workspace }}/master/Tools/GPU-Occupancy-Calculator/index.html ${GPU_OCC_CALC}/index.html

- name: Push docs
if: ${{ github.ref == 'refs/heads/master' }} # only if this workflow is run from the master branch, push docs
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ github.token }}
GITHUB_REPO: ${{ github.repository }}
run: |
cd src/docs/_build/
touch .nojekyll
git init
git remote add origin "https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPO}"
git add -A
git status
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git commit -sm "$(date)"
git branch -M gh-pages
git push -u origin -f gh-pages
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# CMAKE build directories
build/

# emacs save files
*~

File renamed without changes.
27 changes: 27 additions & 0 deletions AI-and-Analytics/DevCloudREADME.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Running Samples In DevCloud
### Run Samples in Jupyter Lab
1. Open [Intel DevCloud](https://software.intel.com/content/www/us/en/develop/tools/devcloud.html).
2. In the upper right corner, click Sign In.
3. Log in with your Intel account username and password.
4. Open Jupyter lab: https://jupyter.oneapi.devcloud.intel.com/

a. If you are redirected to the Intel DevCloud page, scroll to the bottom and select Launch Jupyter Lab.
![](images/jupyter-button.png)
b. When Jupyter Lab opens, if prompted for a kernel, select **No Kernel**.
5. Close the Welcome page. The Launcher tab will appear.
6. On the Launcher tab, click **Terminal**.
![](images/jupyter-terminal.png)

7. You will see your login at the prompt.
8. Follow the instructions to [get code samples](https://github.com/intel-ai-tce/oneAPI-samples/tree/devcloud/AI-and-Analytics#get-code-samples) and [run samples on DevCloud](https://github.com/intel-ai-tce/oneAPI-samples/tree/devcloud/AI-and-Analytics#how-to-submit-a-workload-to-a-specific-architecture)


### Running the Sample in DevCloud with a Local Terminal
1. Open a terminal on your Linux system.
2. Log in to DevCloud.
```
ssh devcloud
```
3. Follow the instructions to [get code samples](https://github.com/intel-ai-tce/oneAPI-samples/tree/devcloud/AI-and-Analytics#get-code-samples) and [run samples on DevCloud](https://github.com/intel-ai-tce/oneAPI-samples/tree/devcloud/AI-and-Analytics#how-to-submit-a-workload-to-a-specific-architecture)


Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
158 changes: 158 additions & 0 deletions AI-and-Analytics/End-to-end-Workloads/Census/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
# `Census` Sample: End-to-End Machine Learning Workload

The `Census` sample code illustrates how to use Intel® Distribution of Modin* for ETL operations and ridge regression algorithm from the Intel® Extension for Scikit-learn* library to build and run an end-to-end machine learning (ML) workload.

| Area | Description
|:--- | :---
| What you will learn | How to use Intel Distribution of Modin* and Intel® Extension for Scikit-learn* to build end-to-end ML workloads and gain performance.
| Time to complete | 20 minutes


## Purpose
This sample code demonstrates how to run the end-to-end census workload using the AI Toolkit without any external dependencies.

Intel® Distribution of Modin* uses HDK to speed up your Pandas notebooks, scripts, and libraries. Unlike other distributed DataFrame libraries, Intel® Distribution of Modin* provides integration and compatibility with existing Pandas code. Intel® Extension for Scikit-learn* dynamically patches scikit-learn estimators to use Intel® oneAPI Data Analytics Library (oneDAL) as the underlying solver to get the solution faster.

## Prerequisites

| Optimized for | Description
| :--- | :---
| OS | 64-bit Ubuntu* 18.04 or higher
| Hardware | Intel Atom® processors <br> Intel® Core™ processor family <br> Intel® Xeon® processor family <br> Intel® Xeon® Scalable processor family
| Software | Intel® AI Analytics Toolkit (AI Kit) (Python version 3.8 or newer, Intel® Distribution of Modin*) <br> Intel® Extension for Scikit-learn* <br> NumPy

The Intel® Distribution of Modin* and Intel® Extension for Scikit-learn* libraries are available together in [Intel® AI Analytics Toolkit (AI Kit)](https://software.intel.com/content/www/us/en/develop/tools/oneapi/ai-analytics-toolkit.html).


## Key Implementation Details

This end-to-end workload sample code is implemented for CPU using the Python language. Once you have installed AI Kit, the Conda environment is prepared with Python version 3.8 (or newer), Intel Distribution of Modin*, Intel® Extension for Scikit-Learn, and NumPy.

In this sample, you will use Intel® Distribution of Modin* to ingest and process U.S. census data from 1970 to 2010 in order to build a ridge regression-based model to find the relation between education and total income earned in the US.

The data transformation stage normalizes the income to yearly inflation, balances the data so each year has a similar number of data points, and extracts the features from the transformed dataset. The feature vectors are input into the ridge regression model to predict the education of each sample.

>**Note**: The dataset is from IPUMS USA, University of Minnesota, [www.ipums.org](https://ipums.org/). <br> Steven Ruggles, Sarah Flood, Ronald Goeken, Josiah Grover, Erin Meyer, Jose Pacas, and Matthew Sobek. IPUMS USA: Version 10.0 \[dataset\]. Minneapolis, MN: IPUMS, 2020. [https://doi.org/10.18128/D010.V10.0](https://doi.org/10.18128/D010.V10.0).


## Configure the Development Environment
If you do not already have the AI Kit installed, then download an online or offline installer for the [Intel® AI Analytics Toolkit (AI Kit)](https://software.intel.com/content/www/us/en/develop/tools/oneapi/ai-analytics-toolkit.html) or install the AI Kit using Conda.

>**Note**: See [Install Intel® AI Analytics Toolkit via Conda*](https://software.intel.com/content/www/us/en/develop/documentation/installation-guide-for-intel-oneapi-toolkits-linux/top/installation/install-using-package-managers/conda/install-intel-ai-analytics-toolkit-via-conda.html) in the *Intel® oneAPI Toolkits Installation Guide for Linux* OS* for information on Conda installation and configuration.

The Intel® Distribution of Modin* and the Intel® Extension for Scikit-learn* are ready to use after AI Kit installation with the Conda Package Manager.

## Set Environment Variables

When working with the command-line interface (CLI), you should configure the oneAPI toolkits using environment variables. Set up your CLI environment by sourcing the `setvars` script every time you open a new terminal window. This practice ensures that your compiler, libraries, and tools are ready for development.

### Use Visual Studio Code* (VS Code) (Optional)

You can use Visual Studio Code* (VS Code) extensions to set your environment,
create launch configurations, and browse and download samples.

The basic steps to build and run a sample using VS Code include:
1. Configure the oneAPI environment with the extension **Environment Configurator for Intel® oneAPI Toolkits**.
2. Download a sample using the extension **Code Sample Browser for Intel® oneAPI Toolkits**.
3. Open a terminal in VS Code (**Terminal > New Terminal**).
4. Run the sample in the VS Code terminal using the instructions below.
5. (Linux only) Debug GPU applications with GDB for Intel® oneAPI toolkits using the Generate Launch Configurations extension.

To learn more about the extensions and how to configure the oneAPI environment, see the [Using Visual Studio Code with Intel® oneAPI Toolkits User Guide](https://www.intel.com/content/www/us/en/develop/documentation/using-vs-code-with-intel-oneapi/top.html).

## Configure the Environment

> **Note**: If you have not already done so, set up your CLI
> environment by sourcing the `setvars` script in the root of your oneAPI installation.
>
> Linux*:
> - For system wide installations: `. /opt/intel/oneapi/setvars.sh`
> - For private installations: ` . ~/intel/oneapi/setvars.sh`
> - For non-POSIX shells, like csh, use the following command: `bash -c 'source <install-dir>/setvars.sh ; exec csh'`
>
> For more information on configuring environment variables, see [Use the setvars Script with Linux* or macOS*](https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/oneapi-development-environment-setup/use-the-setvars-script-with-linux-or-macos.html).

### On Linux*

1. Install the Intel® Distribution of Modin* python environment (Only python 3.8 - 3.10 are supported).
```
conda create -n modin-hdk python=3.x -y
```
2. Activate the Conda environment.
```
conda activate modin-hdk
```
3. Install modin-hdk, Intel® Extension for Scikit-learn* and related libraries.
```
conda install modin-hdk -c conda-forge -y
pip install scikit-learn-intelex
pip install matplotlib
```
4. Install Jupyter Notebook
```
pip install jupyter ipykernel
```
5. Add kernel to Jupyter Notebook.
```
python -m ipykernel install --user --name modin-hdk
```
6. Change to the sample directory, and open Jupyter Notebook.
```
jupyter notebook
```

## Run the `Census` Sample

### Run the Jupyter Notebook

1. Open `census_modin.ipynb`.
2. Click **Run** to run the cells.

![Click the Run Button in the Jupyter Notebook](Running_Jupyter_notebook.jpg "Run Button on Jupyter Notebook")

3. Alternatively, run the entire workbook by selecting **Restart kernel and re-run whole notebook**.

### Run as Python File
1. Open the notebook in Jupyter.
2. From the **File** menu, select **Download as** > **Python (.py)**.

![Download as python file in the Jupyter Notebook](Running_Jupyter_notebook_as_Python.jpg "Download as python file in the Jupyter Notebook")

3. Run the program.
```
python census_modin.py
```

#### Troubleshooting
If you receive an error message, troubleshoot the problem using the **Diagnostics Utility for Intel® oneAPI Toolkits**. The diagnostic utility provides configuration and system checks to help find missing dependencies, permissions errors, and other issues. See the [Diagnostics Utility for Intel® oneAPI Toolkits User Guide](https://www.intel.com/content/www/us/en/develop/documentation/diagnostic-utility-user-guide/top.html) for more information on using the utility.


### Run Notebook in Intel® DevCloud in JupyterLab*

1. If you do not already have an account, request an Intel® DevCloud account at [Create an Intel® DevCloud Account](https://intelsoftwaresites.secure.force.com/DevCloud/oneapi).
2. Open a web browser, and navigate to https://devcloud.intel.com. Select **Work with oneAPI**.
3. From Intel® DevCloud for oneAPI [Get Started](https://devcloud.intel.com/oneapi/get_started), locate the ***Connect with Jupyter* Lab*** section (near the bottom).
4. Click **Sign in to Connect** button. (If you are already signed in, the link should say ***Launch JupyterLab****.)
5. Open a terminal from Launcher
6. Follow [step 1-5](#on-linux) to create conda environment
7. Clone the samples from GitHub. If the samples are already present, skip this step.
```
git clone https://github.com/oneapi-src/oneAPI-samples.git
```
8. Change to the sample directory.
9. Open `census_modin.ipynb`.
10. Select kernel "modin-hdk"
11. Click **Run** to run the cells.
12. Alternatively, run the entire workbook by selecting **Restart kernel and re-run whole notebook**.

## Example Output

This is an example Cell Output for `census_modin.ipynb` run in Jupyter Notebook.
![Output](Expected_output.jpg "Expected output for Jupyter Notebook")


## 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.

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).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading