Skip to content

Commit e2074f2

Browse files
authored
AI-samples-Readme-Updates (oneapi-src#848)
* AI-samples-Readme-Updates For each readme in the AI-and-Analytics folder, I reviewed and updated to include consistent instructions for: - Using VS Code - sourcing or running setvars - troubleshooting with the diagnostics utility * shortened setvars section
1 parent 6ed20b5 commit e2074f2

File tree

19 files changed

+498
-144
lines changed
  • AI-and-Analytics

19 files changed

+498
-144
lines changed

AI-and-Analytics/End-to-end-Workloads/Census/README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Data transformation stage normalizes the income to the yearly inflation, balance
2020
Dataset is from IPUMS USA, University of Minnesota, [www.ipums.org](https://ipums.org/) (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)
2121

2222
## Key Implementation Details
23-
This end-to-end workload sample code is implemented for CPU using the Python language. With the installation of Intel AI Analytics Toolkit, the conda environment is prepared with Python version 3.7, Intel Distribution of Modin* , Ray, Intel® Extension for Scikit-Learn, NumPy following which the sample code can be directly run using the underlying steps in this README.
23+
This end-to-end workload sample code is implemented for CPU using the Python language. With the installation of Intel AI Analytics Toolkit, the conda environment is prepared with Python version 3.7, Intel Distribution of Modin* , Ray, Intel® Extension for Scikit-Learn, NumPy following which the sample code can be directly run using the underlying steps in this README.
2424

2525
## License
2626

@@ -77,3 +77,23 @@ Run the Program
7777
##### Expected Printed Output:
7878
Expected Cell Output shown for census_modin.ipynb:
7979
![Output](Expected_output.jpg "Expected output for Jupyter Notebook")
80+
81+
If an error occurs, troubleshoot the problem using the Diagnostics Utility for Intel® oneAPI Toolkits.
82+
[Learn more](https://software.intel.com/content/www/us/en/develop/documentation/diagnostic-utility-user-guide/top.html).
83+
84+
### Using Visual Studio Code* (Optional)
85+
86+
You can use Visual Studio Code (VS Code) extensions to set your environment,
87+
create launch configurations, and browse and download samples.
88+
89+
The basic steps to build and run a sample using VS Code include:
90+
- Download a sample using the extension **Code Sample Browser for Intel oneAPI Toolkits**.
91+
- Configure the oneAPI environment with the extension **Environment Configurator for Intel oneAPI Toolkits**.
92+
- Open a Terminal in VS Code (**Terminal>New Terminal**).
93+
- Run the sample in the VS Code terminal using the instructions below.
94+
- (Linux only) Debug your GPU application with GDB for Intel® oneAPI toolkits using the Generate Launch Configurations extension.
95+
96+
To learn more about the extensions, see
97+
[Using Visual Studio Code with Intel® oneAPI Toolkits](https://software.intel.com/content/www/us/en/develop/documentation/using-vs-code-with-intel-oneapi/top.html).
98+
99+
After learning how to use the extensions for Intel oneAPI Toolkits, return to this readme for instructions on how to build and run a sample.

AI-and-Analytics/End-to-end-Workloads/LidarObjectDetection-PointPillars/README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,19 @@ To learn more about the extensions and how to configure the oneAPI environment,
6666
After learning how to use the extensions for Intel oneAPI Toolkits, return to this readme for instructions on how to build and run a sample.
6767

6868
### Build process (Local or Remote Host Installation)
69-
Perform the following steps:
69+
70+
> **Note**: If you have not already done so, set up your CLI
71+
> environment by sourcing the `setvars` script located in
72+
> the root of your oneAPI installation.
73+
>
74+
> Linux Sudo: . /opt/intel/oneapi/setvars.sh
75+
>
76+
> Linux User: . ~/intel/oneapi/setvars.sh
77+
>
78+
> Windows: C:\Program Files(x86)\Intel\oneAPI\setvars.bat
79+
>
80+
>For more information on environment variables, see Use the setvars Script for [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), or [Windows](https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/oneapi-development-environment-setup/use-the-setvars-script-with-windows.html).
81+
7082
1. Prepare the environment to be able to use the Intel® Distribution of OpenVINO™ toolkit and oneAPI
7183
```
7284
$ source /opt/intel/openvino_2021/bin/setupvars.sh
@@ -81,6 +93,17 @@ $ make
8193
```
8294
Please note that cmake will also download the ONNX models required for the two inference steps executed with the Intel® Distribution of OpenVINO™ toolkit.
8395

96+
If an error occurs, you can get more details by running `make` with the
97+
`VERBOSE=1` argument:
98+
99+
``make VERBOSE=1``
100+
101+
For more comprehensive
102+
troubleshooting, use the Diagnostics Utility for Intel® oneAPI Toolkits, which
103+
provides system checks to find missing dependencies and permissions errors.
104+
[Learn more](https://software.intel.com/content/www/us/en/develop/documentation/diagnostic-utility-user-guide/top.html).
105+
106+
84107
## Running the `PointPillars` Sample Program
85108
After a successful build, the sample program can be run as follows:
86109
```

AI-and-Analytics/End-to-end-Workloads/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,17 @@ Third party program Licenses can be found here:
2929
# Using Samples in the Intel oneAPI DevCloud
3030
To get started using samples in the DevCloud, refer to [Using AI samples in Intel oneAPI DevCloud](https://github.com/intel-ai-tce/oneAPI-samples/tree/devcloud/AI-and-Analytics#using-samples-in-intel-oneapi-devcloud).
3131

32+
### Using Visual Studio Code* (Optional)
33+
34+
You can use Visual Studio Code (VS Code) extensions to set your environment, create launch configurations,
35+
and browse and download samples.
36+
37+
The basic steps to build and run a sample using VS Code include:
38+
- Download a sample using the extension **Code Sample Browser for Intel oneAPI Toolkits**.
39+
- Configure the oneAPI environment with the extension **Environment Configurator for Intel oneAPI Toolkits**.
40+
- Open a Terminal in VS Code (**Terminal>New Terminal**).
41+
- Run the sample in the VS Code terminal using the instructions below.
42+
- (Linux only) Debug your GPU application with GDB for Intel® oneAPI toolkits using the Generate Launch Configurations extension.
43+
44+
To learn more about the extensions, see
45+
[Using Visual Studio Code with Intel® oneAPI Toolkits](https://software.intel.com/content/www/us/en/develop/documentation/using-vs-code-with-intel-oneapi/top.html).

AI-and-Analytics/Features-and-Functionality/IntelPython_XGBoost_Performance/README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,20 @@ XGBoost is ready for use once you finish the Intel® oneAPI AI Analytics Toolkit
3030

3131
You can refer to the oneAPI [main page](https://software.intel.com/en-us/oneapi) for toolkit installation and the Toolkit [Getting Started Guide for Linux](https://software.intel.com/en-us/get-started-with-intel-oneapi-linux-get-started-with-the-intel-ai-analytics-toolkit) for post-installation steps and scripts.
3232

33-
33+
> **Note**: If you have not already done so, set up your CLI
34+
> environment by sourcing the `setvars` script located in
35+
> the root of your oneAPI installation.
36+
>
37+
> Linux Sudo: . /opt/intel/oneapi/setvars.sh
38+
>
39+
> Linux User: . ~/intel/oneapi/setvars.sh
40+
>
41+
> Windows: C:\Program Files(x86)\Intel\oneAPI\setvars.bat
42+
>
43+
>For more information on environment variables, see Use the setvars Script for [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), or [Windows](https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/oneapi-development-environment-setup/use-the-setvars-script-with-windows.html).
3444
3545
### Activate conda environment With Root Access
3646

37-
Please follow the Getting Started Guide steps (above) to set up your oneAPI environment with the `setvars.sh` script. Then navigate in Linux shell to your oneapi installation path, typically `/opt/intel/oneapi/` when installed as root or sudo, and `~/intel/oneapi/` when not installed as a superuser. If you customized the installation folder, the `setvars.sh` file is in your custom folder.
38-
3947
Intel Python environment will be active by default. However, if you activated another environment, you can return with the following command:
4048

4149
#### On a Linux* System

AI-and-Analytics/Features-and-Functionality/IntelPython_XGBoost_daal4pyPrediction/README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,20 @@ XGBoost* is ready for use once you finish the Intel® oneAPI AI Analytics Toolki
3333
You can refer to the oneAPI [main page](https://software.intel.com/en-us/oneapi) for toolkit installation and the Toolkit [Getting Started Guide for Linux](https://software.intel.com/en-us/get-started-with-intel-oneapi-linux-get-started-with-the-intel-ai-analytics-toolkit) for post-installation steps and scripts.
3434

3535

36-
### Activate conda environment With Root Access
36+
> **Note**: If you have not already done so, set up your CLI
37+
> environment by sourcing the `setvars` script located in
38+
> the root of your oneAPI installation.
39+
>
40+
> Linux Sudo: . /opt/intel/oneapi/setvars.sh
41+
>
42+
> Linux User: . ~/intel/oneapi/setvars.sh
43+
>
44+
> Windows: C:\Program Files(x86)\Intel\oneAPI\setvars.bat
45+
>
46+
>For more information on environment variables, see Use the setvars Script for [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), or [Windows](https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/oneapi-development-environment-setup/use-the-setvars-script-with-windows.html).
47+
3748

38-
Please follow the Getting Started Guide steps (above) to set up your oneAPI environment with the `setvars.sh` script. Then navigate in Linux shell to your oneapi installation path, typically `/opt/intel/oneapi/` when installed as root or sudo, and `~/intel/oneapi/` when not installed as a superuser. If you customized the installation folder, the `setvars.sh` file is in your custom folder.
49+
### Activate conda environment With Root Access
3950

4051
Intel Python environment will be active by default. However, if you activated another environment, you can return with the following command:
4152

AI-and-Analytics/Features-and-Functionality/IntelPython_daal4py_DistributedKMeans/README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# `Intel Python daal4py Distributed K-Means` Sample
2-
This sample code shows how to train and predict with a distributed k-means model using the python API package daal4py for oneAPI Data Analytics Library. It assumes you have a working version of the Intel MPI library installed, and it demonstrates how to use software products that can be found in the [oneAPI Data Analytics Library](https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onedal.html) or [Intel® oneAPI AI Analytics Toolkit](https://software.intel.com/content/www/us/en/develop/tools/oneapi/ai-analytics-toolkit.html).
1+
# `Intel Python daal4py Distributed K-Means` Sample
2+
This sample code shows how to train and predict with a distributed k-means model using the python API package daal4py for oneAPI Data Analytics Library. It assumes you have a working version of the Intel MPI library installed, and it demonstrates how to use software products that can be found in the [oneAPI Data Analytics Library](https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onedal.html) or [Intel® oneAPI AI Analytics Toolkit](https://software.intel.com/content/www/us/en/develop/tools/oneapi/ai-analytics-toolkit.html).
33

44
| Optimized for | Description
55
| :--- | :---
@@ -29,13 +29,23 @@ If you are running this sample on the DevCloud, see [Running Samples on the Inte
2929

3030
## Building daal4py for CPU
3131

32-
oneAPI Data Analytics Library is ready for use once you finish the Intel® oneAPI AI Analytics Toolkit installation and have run the post installation script.
32+
The Intel(R) oneAPI Data Analytics Library is ready for use once you finish the Intel® oneAPI AI Analytics Toolkit installation and have run the post installation script.
3333

34-
You can refer to the oneAPI [main page](https://software.intel.com/en-us/oneapi) for toolkit installation and the Toolkit [Getting Started Guide for Linux](https://software.intel.com/en-us/get-started-with-intel-oneapi-linux-get-started-with-the-intel-ai-analytics-toolkit) for post-installation steps and scripts.
34+
You can refer to the oneAPI [main page](https://software.intel.com/en-us/oneapi) for toolkit installation and the Toolkit [Getting Started Guide for Linux](https://www.intel.com/content/www/us/en/develop/documentation/get-started-with-ai-linux/top.html) for post-installation steps and scripts.
3535

36-
### Activate conda environment With Root Access
36+
> **Note**: If you have not already done so, set up your CLI
37+
> environment by sourcing the `setvars` script located in
38+
> the root of your oneAPI installation.
39+
>
40+
> Linux Sudo: . /opt/intel/oneapi/setvars.sh
41+
>
42+
> Linux User: . ~/intel/oneapi/setvars.sh
43+
>
44+
> Windows: C:\Program Files(x86)\Intel\oneAPI\setvars.bat
45+
>
46+
>For more information on environment variables, see Use the setvars Script for [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), or [Windows](https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/oneapi-development-environment-setup/use-the-setvars-script-with-windows.html).
3747
38-
Please follow the Getting Started Guide steps (above) to set up your oneAPI environment with the `setvars.sh` script. Then navigate in Linux shell to your oneapi installation path, typically `/opt/intel/oneapi/` when installed as root or sudo, and `~/intel/oneapi/` when not installed as a superuser. If you customized the installation folder, the `setvars.sh` file is in your custom folder.
48+
### Activate conda environment With Root Access
3949

4050
Intel Python environment will be active by default. However, if you activated another environment, you can return with the following command:
4151

@@ -99,7 +109,7 @@ The basic steps to build and run a sample using VS Code include:
99109
- Run the sample in the VS Code terminal using the instructions below.
100110

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

104114
After learning how to use the extensions for Intel oneAPI Toolkits, return to this readme for instructions on how to build and run a sample.
105115

AI-and-Analytics/Features-and-Functionality/IntelPython_daal4py_DistributedLinearRegression/README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `Intel Python daal4py Distributed Linear Regression Sample`
22

3-
This sample code shows how to train and predict with a distributed linear regression model using the python API package daal4py for oneAPI Data Analytics Library. It assumes you have a working version of the Intel® MPI Library installed, and it demonstrates how to use software products that can be found in the [oneAPI Data Analytics Library](https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onedal.html) or [Intel® oneAPI AI Analytics Toolkit](https://software.intel.com/content/www/us/en/develop/tools/oneapi/ai-analytics-toolkit.html).
3+
This sample code shows how to train and predict with a distributed linear regression model using the python API package daal4py for oneAPI Data Analytics Library. It assumes you have a working version of the Intel® MPI Library installed, and it demonstrates how to use software products that can be found in the [oneAPI Data Analytics Library](https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onedal.html) or [Intel® oneAPI AI Analytics Toolkit](https://software.intel.com/content/www/us/en/develop/tools/oneapi/ai-analytics-toolkit.html).
44

55
| Optimized for | Description
66
| :--- | :---
@@ -34,11 +34,20 @@ oneAPI Data Analytics Library is ready for use once you finish the Intel® oneAP
3434

3535
You can refer to the oneAPI [main page](https://software.intel.com/en-us/oneapi) for toolkit installation and the Toolkit [Getting Started Guide for Linux](https://software.intel.com/en-us/get-started-with-intel-oneapi-linux-get-started-with-the-intel-ai-analytics-toolkit) for post-installation steps and scripts.
3636

37+
> **Note**: If you have not already done so, set up your CLI
38+
> environment by sourcing the `setvars` script located in
39+
> the root of your oneAPI installation.
40+
>
41+
> Linux Sudo: . /opt/intel/oneapi/setvars.sh
42+
>
43+
> Linux User: . ~/intel/oneapi/setvars.sh
44+
>
45+
> Windows: C:\Program Files(x86)\Intel\oneAPI\setvars.bat
46+
>
47+
>For more information on environment variables, see Use the setvars Script for [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), or [Windows](https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/oneapi-development-environment-setup/use-the-setvars-script-with-windows.html).
3748
3849
### Activate conda environment With Root Access
3950

40-
Please follow the Getting Started Guide steps (above) to set up your oneAPI environment with the `setvars.sh` script. Then navigate in Linux shell to your oneapi installation path, typically `/opt/intel/oneapi/` when installed as root or sudo, and `~/intel/oneapi/` when not installed as a superuser. If you customized the installation folder, the `setvars.sh` file is in your custom folder.
41-
4251
Intel Python environment will be active by default. However, if you activated another environment, you can return with the following command:
4352

4453
#### On a Linux* System

AI-and-Analytics/Features-and-Functionality/IntelScikitLearn_Extensions_SVC_Adult/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ Classification report for SVC trained with the original scikit-learn:
7878
macro avg 0.76 0.74 0.75 9769
7979
weighted avg 0.82 0.82 0.82 9769
8080
```
81+
82+
83+
If an error occurs, troubleshoot the problem using the Diagnostics Utility for Intel® oneAPI Toolkits.
84+
[Learn more](https://software.intel.com/content/www/us/en/develop/documentation/diagnostic-utility-user-guide/top.html)
85+
86+
8187
### Using Visual Studio Code* (VS Code)
8288

8389
You can use VS Code extensions to set your environment, create launch configurations,

AI-and-Analytics/Features-and-Functionality/IntelTensorFlow_Horovod_Multinode_Training/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ Example:
9090
horovodrun -n 2 -H host1,host2 `pwd`/TensorFlow_Multinode_Training_with_Horovod.py
9191
```
9292

93+
If an error occurs, troubleshoot the problem using the Diagnostics Utility for Intel® oneAPI Toolkits.
94+
[Learn more](https://software.intel.com/content/www/us/en/develop/documentation/diagnostic-utility-user-guide/top.html)
95+
9396
### Using Visual Studio Code* (VS Code)
9497

9598
You can use VS Code extensions to set your environment, create launch configurations,

0 commit comments

Comments
 (0)