Oneapi - Installation Guide Linux - 2023.1 766279 774131
Oneapi - Installation Guide Linux - 2023.1 766279 774131
Contents
Chapter 1: Intel® oneAPI Toolkits and Components Installation
Guide for Linux* OS
Prerequisites.............................................................................................3
Install Intel GPU Drivers..................................................................... 4
GPU: Disable Hangcheck .................................................................... 4
Installation ...............................................................................................5
Install with GUI.................................................................................6
Install with Command Line ................................................................. 6
Install Using Package Managers ........................................................ 11
YUM/DNF/Zypper .................................................................... 12
APT....................................................................................... 15
Conda ................................................................................... 17
PIP ....................................................................................... 21
NuGet ................................................................................... 23
Cloudera................................................................................ 25
Maven ................................................................................... 25
Spack.................................................................................... 25
List Available Toolkits, Components, and Runtime Library
Packages ........................................................................... 26
Install Packages or Components to Different Directories ....................... 27
Configure WSL 2 for GPU Workflows .................................................. 28
Install Software for Intel FPGA Development Flows .............................. 30
Install the Intel® Quartus Prime Software ................................... 32
Install Intel® FPGA Board Packages............................................ 33
Use oneAPI Components in a Yocto Project Build ................................. 33
Uninstall oneAPI Toolkits and Components .................................................. 34
Troubleshooting....................................................................................... 36
Notices and Disclaimers............................................................................ 38
2
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
Installation
Install Intel oneAPI component and toolkit packages with one of the following options:
• Install with GUI
• Install with Command Line
• Install Using Package Managers
• Install Using Docker Container
Next Steps
Get Intel oneAPI code samples and refer to the toolkit Get Started page for detailed usage instructions,
examples, and more:
• Get Started with Intel® oneAPI Base Toolkit
• Get Started with Intel® oneAPI HPC Toolkit
• Get Started with Intel® oneAPI IoT Toolkit
• Get Started with Intel® oneAPI AI Analytics Toolkit
• Get Started with Intel® oneAPI System Bring-up Toolkit
• Get Started with Intel® oneAPI Rendering Toolkit
• Get Started with Intel® oneAPI DL Framework Developers Toolkit
Prerequisites
Consider the following important information before installing the Intel oneAPI packages.
System Requirements
Refer to the toolkit-specific Release Notes and System Requirements documents to learn more about
compatibility details:
• Intel® oneAPI Base Toolkit Release Notes | System Requirements
• Intel® oneAPI HPC Toolkit Release Notes | System Requirements
• Intel® oneAPI IoT Toolkit Release Notes | System Requirements
• Intel® oneAPI AI Analytics Toolkit Release Notes | System Requirements
• Intel® oneAPI System Bring-up Toolkit Release Notes | System Requirements
• Intel® oneAPI Rendering Toolkit Release Notes | System Requirements
• Intel® oneAPI DL Framework Developers Toolkit Release Notes | System Requirements
3
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
IDE Integration
To use third-party IDE, install Eclipse* on your Linux* OS host system before installing oneAPI Toolkits. This
allows you to integrate the plugins as part of the Intel oneAPI Base Toolkit installation.
If you use Intel GPU, you need to install the latest GPU drivers separately. To install the driver packages,
follow the Installation Guide applicable for your Linux distribution.
This section applies only to applications with long-running GPU compute workloads in native environments. It
is not recommended for virtualizations or other standard usages of GPU, such as gaming.
A workload that takes more than four seconds for GPU hardware to execute is a long-running workload. By
default, individual threads that qualify as long-running workloads are considered hung and are terminated.
By disabling the hangcheck timeout period, you can avoid this problem.
NOTE If the system is rebooted, hangcheck is automatically enabled. You must disable hangcheck
again after every reboot or follow the directions below to disable hangcheck persistently (across
multiple reboots). Please re-run this GPU Hangcheck disable with reboot fix if you update (or auto-
update) the kernel.
4
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
NOTE If the kernel is updated, hangcheck is automatically enabled. Run the procedure below after
every kernel update to ensure hangcheck is disabled.
1. Open a terminal.
2. Open the grub file in /etc/default.
3. In the grub file, find the line GRUB_CMDLINE_LINUX_DEFAULT="".
4. Enter the following text between the quotes (“”):
i915.enable_hangcheck=0
5. Run the following command:
sudo update-grub
6. Reboot the system. Hangcheck remains disabled.
Installation
Toolkit Installation
Important Some domain-specific toolkits require you to install the Intel oneAPI Base Toolkit first for
full functionality.
Intel® oneAPI Base Online/offline installer YUM, DNF, Zypper, APT Docker Hub
Toolkit
Intel® oneAPI HPC Online/offline installer YUM, DNF, Zypper, APT Docker Hub
Toolkit (requires
installation of the Intel
oneAPI Base Toolkit)
Intel® oneAPI IoT Toolkit Online/offline installer YUM, DNF, Zypper, APT Docker Hub
(requires installation of
the Intel oneAPI Base
Toolkit)
Intel® oneAPI AI Online/offline installer YUM, DNF, Zypper, APT, Docker Hub
Analytics Toolkit Conda
Intel® oneAPI Rendering Online/offline installer YUM, DNF, Zypper, APT N/A
Toolkit
Each of the binary installer types operates in various modes, which are covered later in this section.
NOTE When using the offline installer, you can enable full offline mode by setting the environment
variable INTEL_SUPPRESS_INTERNET_CONNECTION=1. When this mode is enabled:
5
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
Component Installation
You can install toolkit components as standalone via binary installer or package managers. Refer to the
Single Component Downloads and Runtime Versions resource to locate a component package.
After downloading the toolkit installation package, follow the steps below to install it with GUI.
1. Launch the installer with the following command:
• root: sudo sh ./l_[Toolkit Name]Kit_[version].sh
• user: sh ./l_[Toolkit Name]Kit_[version].sh
2. Follow the installer instructions.
3. Once the installation is complete, verify that your toolkit is installed to the correct installation directory:
• root: /opt/intel/oneapi
• user: ~/intel/oneapi
NOTE If you are using Intel GPU, you need to install the latest GPU drivers separately.
General Instructions
Launch the installation script using the following command:
• root:
6
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
where [options] contain parameters for the package extraction script, and [arguments] are options for
the installer.
The package extraction script supports the following options:
-f, --extract-folder Point to the folder where the package content will
be saved.
-r, --remove-extracted-files <yes|no> Remove extracted files after installation. This action
cleans up the temporary package file location.
-l, --log <log file> Log all package extraction actions to the specified
file.
The values after -a are passed as command line arguments to the installer. The following installer options
are supported:
-c, --cli CLI N/A Run the installer in interactive text-based user
interface (TUI) mode.
-s, --silent Silent N/A Run the installer in non-interactive (silent) mode.
--action Silent/CLI install Specify one of the supported values below when
the installer action is needed:
• install (default) Install the product. Use the
--components option to specify the list of
components to be installed. If not specified, the
default set of components is installed.
• remove Uninstall the product.
• modify Change the current set of components
installed. List all the components you need using
the --components option. Components that are
already installed still must be in the list if remain
relevant.
• downloadonly Download an offline installation
package without installing it. To customize the
list of components to be included into a
package, use the --components option.
• repair Repair the currently installed product.
7
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
--config Silent/CLI N/A Point to the configuration INI file with options. You
can use this file as an alternative to passing options
via the command line; mixed approach is also
supported. Sample content of a configuration file:
s=eula=accept.
Use this command to run the installer with the
options passed via config.txt:
sh ./l_[Toolkit Name]Kit_[version].sh --
config config.txt
--list-products N/A N/A Get the list of downloaded products, their IDs,
versions and statuses (installed/not installed). Use
together with the --instance option to get the list
of available products in a specific instance. For
example: sh ./l_[Toolkit
Name]Kit_[version].sh -a --list-products
--instance=<instance ID>.
8
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
Option Supported Default Description
mode value (if
option is not
passed)
--list- N/A N/A Get the list of available components of the current
components package or of a product specified with --product-
id. Use together with the --instance option to
get the list of available components in a specific
instance. For example: sh ./l_[Toolkit
Name]Kit_[version].sh -a --list-
components --instance=<instance ID>.
--log-dir Silent/CLI default log Customize the directory to save the log file to.
location
--download- Silent default Point to the directory to store all downloaded and
cache download cached files.
cache
location
--show-intel- N/A N/A Show the detailed description of the Intel Software
sw-improvement- Improvement Program.
program-consent
-p, --property Silent/CLI N/A Pass additional custom options. For example, the
string -p=option1=value -p option2=value
gives two additional options. If a custom option is
provided twice with different values, only the latest
9
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
For example, to show the installer help, use the following command:
sh ./l_[Toolkit Name]Kit_[version].sh -a -h
/opt/intel/oneapi
• user:
~/intel/oneapi
NOTE If you are using Intel GPU, you need to install the latest GPU drivers separately.
Interactive Installation
1. Launch the installer with the following command:
• root:
/opt/intel/oneapi
• user:
~/intel/oneapi
10
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
Examples
• Display the list of already installed products and products included in the downloaded package:
• root:
You can install Intel oneAPI packages from one of the following repositories:
• YUM, DNF, Zypper
• APT
• Cloudera (oneMKL)
• Spack
• Conda
• PIP
• NuGet
• Maven (oneDAL)
11
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
For instructions on how to get the list of packages available for installation with Linux* package managers,
refer to List Toolkits, Components, and Runtime Library Packages.
YUM/DNF/Zypper
You can install Intel oneAPI packages via YUM, DNF, or Zypper package managers (whichever works best for
your system configuration).
Pre-installation Steps
NOTE
• it with the following command:
If you have an existing
installation of Intel® # If using YUM or DNF:
oneAPI Beta, remove sudo -E {yum|dnf} autoremove <package_name>
# If using Zypper:
sudo -E zypper rm <package_name>
• When upgrading from 2021.1 to 2021.2, apply automatic removal of conflicting packages during
the upgrade process as described in the Upgrade Toolkit/Component section.
1. Check the toolkit-specific System Requirements page to make sure that your OS is supported:
• Intel® oneAPI Base Toolkit
• Intel® oneAPI HPC Toolkit
• Intel® oneAPI IoT Toolkit
• Intel® oneAPI AI Analytics Toolkit
• Intel® oneAPI Rendering Toolkit
• Intel® oneAPI DL Framework Developers Toolkit
You can get your OS version using the following command depending on your Linux distribution:
12
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
b. Move the newly created oneAPI.repo file to the YUM/DNF configuration directory /etc/
yum.repos.d:
Install Packages
NOTE If you are on a company intranet or behind a firewall, set the http_proxy and https_proxy
environment variables to allow YUM/DNF/Zypper access the repository servers using HTTPS protocol.
1. Get the name of a toolkit package that you need to install from the list of Intel oneAPI packages. Write
down or copy your package name for future reference.
2. Install the needed package with the following command:
NOTE If you have applications with long-running GPU compute workloads in native environments, you
must disable the hangcheck timeout period to avoid terminating workloads.
13
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
Upgrade Toolkit/Component
NOTE Intel oneAPI packages of version 2021.2 (and higher) have conflicts with 2021.1 packages.
Before installing 2021.2, you need to remove the 2021.1 packages from your system. If you use YUM
v4/DNF/Zypper, you can apply automatic removal of conflicting packages during upgrade with the
following commands:
# If using YUM:
sudo yum upgrade --allowerasing --best <package_name>
# If using DNF:
sudo dnf upgrade --allowerasing --best <package_name>
# If using Zypper:
sudo zypper update --force-resolution <package_name>
For lower versions of YUM, remove the 2021.1 packages manually:
You can upgrade toolkit or component package to the latest version using the following instructions:
• Toolkit: {yum|dnf|zypper} upgrade <toolkit package>
For example, to upgrade the Intel oneAPI Base Toolkit package to the latest version, use the following
command:
# If using YUM:
sudo yum upgrade intel-basekit
# If using DNF:
sudo dnf upgrade intel-basekit
# If using Zypper:
sudo zypper upgrade intel-basekit
• Component: {yum|dnf|zypper} upgrade <component package>
For example, to upgrade the Intel Distribution for GDB* package, use the following command:
# If using YUM:
sudo yum upgrade intel-oneapi-dpcpp-debugger
# If using DNF:
sudo dnf upgrade intel-oneapi-dpcpp-debugger
# If using Zypper:
sudo zypper upgrade intel-oneapi-dpcpp-debugger
14
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
Toolkit Packages
The following toolkits and associated versions are available for installation via YUM repositories:
Toolkit Name 64-bit Meta Package Name 32-bit Meta Package Name*
(default)
APT
Pre-installation Steps
NOTE If you have an existing installation of Intel® oneAPI Beta, remove it with the following
command:
1. Check the toolkit-specific System Requirements page to make sure that your OS is supported:
• Intel® oneAPI Base Toolkit
• Intel® oneAPI HPC Toolkit
• Intel® oneAPI IoT Toolkit
15
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
# add signed entry to apt sources and configure the APT client to use Intel repository:
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/
oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
4. Update packages list and repository index:
Install Packages
NOTE If you are on a company intranet or behind a firewall, set the http_proxy and https_proxy
environment variables to allow APT access the repository servers using HTTPS protocol.
1. Get the name of a toolkit package that you need to install from the list of Intel oneAPI packages. Write
down or copy your package name for future reference.
2. Install the needed package with the following command:
NOTE If you want to integrate tools into the Eclipse* IDE, open Eclipse and verify that a menu titled
Intel is present. If the menu is not present, see Installing Eclipse* Plugins from the IDE.
Installation is complete! For next steps, refer to the Get Started Guide for your toolkit:
• Intel® oneAPI Base Toolkit
• Intel® oneAPI HPC Toolkit
• Intel® oneAPI IoT Toolkit
• Intel® oneAPI AI Analytics Toolkit
• Intel® oneAPI Rendering Toolkit
• Intel® oneAPI DL Framework Developers Toolkit
16
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
NOTE If you have applications with long-running GPU compute workloads in native environments, you
must disable the hangcheck timeout period to avoid terminating workloads.
Toolkit Name 64-bit Meta Package Name 32-bit Meta Package Name*
(default)
Conda
This page provides general instructions on installing the Intel® oneAPI component packages via the Conda*
package manager.
For additional installation notes, refer to the Conda documentation.
To install a package, execute the following command:
• To install the latest version available:
conda install -c intel <package_name>
17
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
To get your package name, refer to the list of packages in the table below.
• To install a specific version:
conda install -c intel <package_name>==<version>
For example: conda install -c intel mkl==2021.1.1
Intel® Fortran Compiler (Beta) and Intel® intel-fortran-rt linux Intel® MPI Library
Fortran Compiler Classic -x64
Intel OpenMP* Runtime
linux Library
-x86
Intel® oneAPI DPC++/C++ Compiler dpcpp-cpp-rt linux Intel® CPU Runtime for
-x64 OpenCL™ Applications
Intel OpenMP* Runtime
Library
18
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
Component Name Package Name Platfo Dependencies
rm
Intel® oneAPI Math Kernel Library mkl linux Intel OpenMP* Runtime
(oneMKL) -x64 Library
mkl-devel
linux oneTBB
mkl-static
-x86
mkl-include
* - For Intel® oneAPI Deep Neural Network Library (oneDNN), only packages of identical configuration can be
installed into one environment. For example, you can install onednn-devel-cpu-vcomp with onednn-cpu-
vcomp, but should avoid installing it with packages of other configurations, like cpu-iomp, cpu-tbb, cpu-
dpcpp-gpu-dpcpp.
• Install Intel® AI Analytics Toolkit via Conda*
• List of Available Packages
Intel provides access to the AI Kit through a public Anaconda repository. If you do not have an existing
Conda-based python environment, install Conda and Miniconda*. To get more details on the AI Analytics
Toolkit, visit the Intel AI Analytics toolkit home page.
19
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
The AI Kit contains three distinct Python environments targeting different use cases:
• intel-aikit-tensorflow for deep learning workflows using Intel® Optimization for TensorFlow*.
• intel-aikit-pytorch for deep learning workflows using Intel® Optimization for PyTorch*.
• intel-aikit-modin for data analytics and machine learning workflows using Intel® Distribution of Modin
(for accelerated Panda data frames), Intel® Extension for Scikit-learn* and Intel optimizations for XGboost
(for ML training and inference).
• intel-aikit for data science workstation development. The oneAPI AI kit samples and documents are
not applicable to the intel-aikit Conda package.
NOTE To get the latest version of the Intel(R) Optimization for TensorFlow*, you must first install
Python 3.9, then install the AI Kit through Anaconda.
source <pythonhome>/bin/activate
2. Install the AI Kit oneAPI packages in a new environment using conda create. A list of available
packages is located at https://anaconda.org/intel/repo. Not all packages in the Anaconda repository are
up to date with the current release. If the repo contains an outdated version of a required component,
get a newer one by installing via the command line or GUI.
If the repository contains the desired version, create an AI Kit Tensorflow* environment named aikit-
tf with this version:
conda create -n aikit-tf -c intel intel-aikit-tensorflow
Similarly, you can create an AI Kit PyTorch environment named aikit-pt:
NOTE
• To install the Model Zoo for Intel® Architecture component of the toolkit, clone the main branch to
your local directory: git clone https://github.com/IntelAI/models.git.
• If you have applications with long-running GPU compute workloads in native environments, you
must disable the hangcheck timeout period to avoid terminating workloads.
NOTE Intel® packages are available on intel label on the Anaconda* Cloud. You must include -c
intel on your command line as in the examples above, or add intel to your Conda configuration file
using conda config --add channels intel.
20
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
Component Name Package Name Platform
After you have installed your components, view the Get Started Guide for the Intel oneAPI AI Analytics
Toolkit to build and run a sample or explore Getting Started Samples on GitHub.
PIP
This page provides general instructions on installing the Intel® oneAPI component packages from the Python*
Package Index (PyPI).
For additional installation notes, refer to the PyPI documentation.
To install a package, execute the following command:
• To install the latest version available:
pip install <package_name>
To get your package name, refer to the list of packages in the table below.
• To install a specific version:
pip install -c intel <package_name>==<version>
For example: pip install mkl==2021.1.1
Important For Intel® oneAPI Deep Neural Network Library (oneDNN), only packages of identical
configuration can be installed into one environment. For example, you can install onednn-devel-cpu-
vcomp with onednn-cpu-vcomp, but should avoid installing it with packages of other configurations,
like cpu-iomp, cpu-tbb, cpu-dpcpp-gpu-dpcpp.
Intel® Fortran Compiler (Beta) and Intel® intel-fortran-rt linux Intel® MPI Library
Fortran Compiler Classic -x64
Intel OpenMP* Runtime
linux Library
-x86
21
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
Intel® oneAPI DPC++/C++ Compiler dpcpp-cpp-rt linux Intel® CPU Runtime for
-x64 OpenCL™ Applications
Intel OpenMP* Runtime
Library
Intel® oneAPI Math Kernel Library mkl linux Intel OpenMP* Runtime
(oneMKL) -x64 Library
mkl-devel
linux oneTBB
mkl-static
-x86
mkl-include
22
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
Component Name Package Name Platfo Dependencies
rm
NuGet
This page provides general notes on how to install Intel® oneAPI components distributed via the NuGet
channel. NuGet is a Microsoft-supported mechanism for sharing compiled code. It also defines how the
packages are created, hosted and consumed, and it provides the tools for each of those roles. For more
details on the installation process, please refer to the Microsoft* documentation.
Intel® oneAPI components distributed via NuGet include both development and runtime options.
For your convenience, the components are divided to devel and static packages corresponding to the
different linking types (dynamic and static). Certain component packages are also split into x64 and x86
versions to reduce the overall package size.
Development Packages
The following table provides the full list of available packages:
23
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
Intel® oneAPI Math Kernel Library intelmkl.devel.clu linux Intel OpenMP* Runtime
(Cluster Components) ster.<platform> -x64 Library
intelmkl.static.cl oneMKL
uster.<platform>
All the specified dependencies will be downloaded automatically by the NuGet Package Manager.
Runtime Packages
The runtime packages are runtime redistributable libraries that will automatically load optimizations specific
to your Intel hardware (including, but not limited to, vectorization). They can be used by another NuGet
package that depends on these runtimes.
24
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
Component Name Package Name Platform
Availability
Cloudera
This page provides general instructions on installing the Intel® oneAPI component parcel packages using the
Cloudera* Manager. For additional notes, refer to the Parcels documentation and Cloudera Installation Guide.
Currently, only the Intel® oneAPI Math Kernel Library (oneMKL) component is distributed via Cloudera*.
Package name: mkl-<version>-el7.parcel, for example, mkl-2021.2.0.296-el7.parcel.
The install the oneMKL parcel:
1. In the Cloudera Manager Admin Console, access the Parcels page by doing one of the following:
• Click the Parcels indicator in the left navigation bar.
• Click the Hosts in the left navigation bar, then click the Parcels tab.
2. At the Parcels page, click the Parcel Repositories & Network Settings button.
3. In the Remote Parcel Repository URLs list, click the plus symbol to open an additional row. Enter
the path to Intel® MKL Parcel repository: http://parcels.repos.intel.com/mkl/latest. Click the
Save & Verify configuration button.
4. Click the Check for New Parcels button. In the Location selector, click Available Remotely. The
latest oneMKL parcel should be available for download.
5. Click the Download button for the oneMKL parcel. By downloading the package, you agree with the
terms and conditions stated in the End-User License Agreement (EULA).
6. When download is completed, click the Distribute button to distribute the parcel on all cluster nodes.
7. When distribution is completed, click the Activate button to activate the parcel on all cluster nodes.
Note
The repository URL referenced above installs the latest version of oneMKL parcel. To install a lower version,
use the URL based on the following model: http://parcels.repos.intel.com/mkl/
<version>.<update>.<build_number>.
Maven
This page provides general instructions on how to include Intel® oneAPI Data Analytics Library (oneDAL)
packages from the Maven repository into your Java project.
To enable oneDAL in your project, specify the following artifacts in your build automation tool:
Group ID: com.intel.dal
Version: <version>
Artifact ID: dal
where <version> is a valid component version, for example, 2021.2.0.123.
For more information on the Maven dependency mechanism, refer to the Maven documentation.
Spack
This page provides general instructions on installing the Intel® oneAPI component packages via Spack. After
installation, you can use the tools directly or use Spack to build packages with the tools.
To install a package, execute the following command:
spack install <package_name>
25
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
Example
The example below demonstrates how to set up Intel oneAPI compilers with Spack. For the full list of oneAPI
packages available via Spack, refer to the Package List.
1. Install the compilers package with the following command:
Use the commands provided below to find and install specific toolkits, standalone components, standalone
runtime library packages, or simply to see all available packages in a corresponding oneAPI repository:
• List toolkit packages
• List standalone components
• List standalone runtime library packages
• List all packages
26
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
27
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
Intel oneAPI installer supports side-by-side installation. It means that you can install multiple instances of
toolkits/components to different directories on the same machine. Each instance is a separate installation
entity with its own isolated environment. Product installed in one instance is not visible in another instance.
With multi-instance installation, you can:
• Install a newer version of a toolkit/component without removing the previous one
• Install toolkits to different directories other than default
• Have multiple instances of the same version of a toolkit/component installed
To install a package into a specific instance, use the following command:
• root:
sudo sh ./l_[Toolkit Name]Kit_[version].sh -a -s –eula=accept –-install-dir=<custom-install-dir>
--instance=<instance ID>
• user:
./l_[Toolkit Name]Kit_[version].sh -a -s –eula=accept –-install-dir=<custom-install-dir> --
instance=<instance ID>
where
• <custom-install-dir> is the directory where you want to install a specific instance to
• <instance ID> is a unique combination of alphanumeric symbols that designate an instance, for
example my-custom-instance-1
For instructions on how to uninstall product(s) from a specific instance, refer to Uninstall Using Silent CLI.
With Microsoft* Windows Subsystem for Linux 2 (WSL 2), you can use native Linux distribution of Intel®
oneAPI tools and libraries on Windows*. Get the latest version of WSL 2 following the process described in
The Windows Subsystem for Linux in the Microsoft Store is now generally available on Windows 10 and 11.
To be able to use Intel oneAPI tools on WSL 2 for GPU workflows, install the Intel GPU drivers as described
below.
Tip Before pasting the command to your console, run sudo ls and enter your password to prevent
the commands from being swallowed by the sudo password prompt.
28
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
• Adds the repositories.intel.com/graphics repository to the system
Number of platforms 2
Platform Name Intel(R) OpenCL HD Graphics
Platform Vendor Intel(R) Corporation
Platform Version OpenCL 3.0
Platform Profile FULL_PROFILE
Tip Before pasting the command to your console, run sudo ls and enter your password to prevent
the commands from being swallowed by the sudo password prompt.
29
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
• Downloads and installs the public key used to verify the integrity of the package repository
• Adds the repositories.intel.com/graphics repository to the system
Number of platforms 2
Platform Name Intel(R) OpenCL HD Graphics
Platform Vendor Intel(R) Corporation
Platform Version OpenCL 3.0
Platform Profile FULL_PROFILE
Field-programmable gate arrays (FPGAs) are configurable integrated circuits that you can program to
implement arbitrary circuit topologies. Classified as spatial compute architectures, FPGAs differ significantly
from fixed Instruction Set Architecture (ISA) devices such as CPUs and GPUs. FPGAs offer a different set of
30
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
optimization trade-offs from these traditional accelerator devices. While you can compile SYCL* code for CPU,
GPU or FPGA, the compiling process for FPGA development is somewhat different than that for CPU or GPU
development.
SYCL supports accelerators in general. The Intel® oneAPI DPC++/C++ Compiler implements additional FPGA-
specific support to assist FPGA code development. For additional information about the FPGA flows, refer to
Types of SYCL* FPGA Compilation topic in the Intel oneAPI Programming Guide.
31
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
NOTE
• FPGA IP Authoring flow is now supported. Developing IP components/hardware with oneAPI
requires the Intel oneAPI Base Toolkit and Intel® Quartus® Prime Software. For details about getting
started with the IP component development flow, refer to Getting Started with Intel® oneAPI
Toolkits and Intel® Quartus® Prime Software and FPGA Flow in the Intel® oneAPI Programming
Guide.
• Intel® Quartus® Prime Software is required only for simulation and hardware generation flows, and
integrating your IP component into your design. You can generate reports and RTL code, and run
the emulation stage with only the Intel® oneAPI Base Toolkit.
The Intel® Quartus® Prime software includes everything you need to design for Intel® FPGAs, from design
entry and synthesis to optimization, verification, and simulation. It contains the following features:
• Hybrid Placer & Global Router
• Timing Analyzer
• Physical Synthesis
• Incremental Fitter Optimization
• Interface Planner
• Synthesis Engine
• Platform Designer
• Partial Reconfiguration
• Block-Based (Hierarchical) Design
NOTE The Intel® Quartus® Prime software is not required for the FPGA development flow’s emulation
or report generation stages. You can complete those stages with just the Intel® oneAPI DPC++/C++
Compiler included in the Intel oneAPI Base Toolkit.
If you want to use the Intel® Quartus® Prime software (required for FPGA hardware and simulation flow) with
oneAPI, the edition of Intel® Quartus® Prime software that you need depends on your target device (either
standalone device or the device on an acceleration board). Refer to the Intel® oneAPI DPC++ /C++ Library
System Requirements for more information.
You have the following options for using Intel® Quartus® Prime software with oneAPI:
• If you want to install a version of the Intel® Quartus® Prime software, follow the instructions in the
following documents:
• Intel® FPGA Software Installation and Licensing
• Intel Quartus Prime Pro Edition User Guide: Getting Started
• Intel Quartus Prime Standard Edition User Guide: Getting Started
• If you already have a version of the Intel® Quartus® Prime software installed on your system and you want
to use that version, then use one of the following methods to set up the environment:
• Set QUARTUS_ROOTDIR_OVERRIDE = <path_to_your_quartus_folder>
• Add the bin directory of the Intel® Quartus® Prime software to your PATH variable.
• If you have multiple versions of the Intel® Quartus® Prime software installed, Intel recommends setting
the QUARTUS_ROOTDIR_OVERRIDE variable to point to the Quartus software path you want to use.
Otherwise, you might end up using a version different than the one you expected. Ensure that you set the
QUARTUS_ROOTDIR_OVERRIDE variable after running the setvars script, which can potentially override
your setting.
32
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
To compile an executable that can run on an FPGA board, install a Board Support Package (BSP) that allows
targeting compiles to that board. Intel does not ship BSPs with oneAPI. You must download and install BSPs
from a third-party vendor. For more information, refer to the Intel® FPGA development flow page.
To use a third-party vendor-provided BSP with the Intel® oneAPI Base Toolkit, follow these instructions:
1. Follow vendor-specific instructions to download and install the board package.
2. Install a version of the Intel® Quartus® Prime software that is compatible with the BSP (as indicated by
the vendor).
3. Follow instructions in Install the Intel® Quartus® Prime Software to ensure the Intel oneAPI DPC++/C++
Compiler is configured to run with the installed Intel Quartus Prime software.
Related Links
• Intel® oneAPI DPC++/C++ Compiler System Requirements
• Get Started with the Intel® oneAPI Base Toolkit for Windows
• FPGA Flow in the Intel® oneAPI Programming Guide
• FPGA Optimization Guide for Intel® oneAPI Toolkits
• Intel® FPGA SDK for OpenCL™ Pro Edition: Custom Platform Toolkit User Guide
• Intel® Quartus® Prime Software User Guides
This section explains how to create a Yocto image with Intel oneAPI components.
System Requirements
Use the Yocto Project official documentation to set up and configure your host machine to make it compatible
with BitBake.
source poky/oe-init-build-env
bitbake-layers add-layer ../meta-intel
bitbake-layers add-layer ../meta-openembedded/meta-oe
33
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
# Set machine
MACHINE = "intel-corei7-64"
bitbake core-image-sato
intel-oneapi-compiler
intel-oneapi-compiler-dbg
intel-oneapi-compiler-dev
intel-oneapi-ipp
intel-oneapi-ipp-dbg
intel-oneapi-ipp-dev
intel-oneapi-mkl
intel-oneapi-mkl-dbg
intel-oneapi-mkl-dev
setup-intel-oneapi-env
setup-intel-oneapi-env-dbg
setup-intel-oneapi-env-dev
34
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
Uninstall oneAPI Toolkits
NOTE Manual removal of the installation folder (not recommended) does not uninstall the oneAPI
toolkits completely. Incorrect uninstallation may block future installations. If you still need to remove
the toolkit manually, make sure to clean up the system correctly and remove the following:
• Installation folder
• Installer cache, located at /var/intel/installercache/* (root) or <user home>/intel/
installercache/* (user), including:
• packages cache at /var/intel/installercache/packagescache (root) or <user home>/
intel/installercache/packagescache (user)
• download cache at /var/intel/installercache/downloadcache/ (root) or <user home>/
intel/installercache/downloadcache (user)
• (Optional) package manager database /var/intel/packagemanager.db (root) or <user
home>/intel/packagemanager.db (user)
• Installer and package manager executables, located at /opt/intel/oneapi/installer/ (root) or
<user home>/intel/oneapi/installer/ (user) and /opt/intel/packagemanager/ (root) or
<user home>/intel/packagemanager/ (user), respectively.
cd /opt/intel/oneapi/installer
sudo ./installer
• Select Remove to remove the toolkit
• Use Installer dashboard dialog with the list of already installed products (toolkits) to Modify, Repair or
Remove each toolkit separately
cd /opt/intel/oneapi/installer
sudo ./installer --action remove --product-id intel.oneapi.lin.tbb.product --product-ver
2021.1.1-129
To uninstall a product from a specific installation instance, use the following command:
cd /opt/intel/oneapi/installer
sudo ./installer --action remove --product-id intel.oneapi.lin.tbb.product --product-ver
2021.1.1-129 --instance=<instance id>
35
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
where <instance id> is a unique combination of alphanumeric symbols set during multi-instance
installation.
Uninstall TensorFlow
1. Deactivate the tensorflow environment, if activated.
2. Uninstall using the following commands:
Troubleshooting
Diagnose Errors
The Diagnostics Utility for Intel oneAPI toolkits provides more checks to find missing dependencies and
permissions errors. Learn more.
36
Intel® oneAPI Toolkits and Components Installation Guide for Linux* OS 1
YUM packages conflict on Amazon Linux 2* OS
When installing toolkits of version 2021.2 or 2021.3 on Amazon Linux 2* OS via YUM, you may get an error
similar to the following:
When you are done with 2021.x, you can change back the directory names to restore the 2022.x installer.
37
1 Intel® oneAPI Toolkits Installation Guide for Linux* OS
38