Prerequisites and Installation¶
1. Device Drivers¶
To start programming data parallel devices beyond CPU, you will need an appropriate hardware. For example, Data Parallel Extensions for Python work fine on Intel © laptops with integrated graphics. In majority of cases, your Windows*-based laptop already has all necessary device drivers installed. But if you want the most up-to-date driver, you can always update it to the latest one. Follow device driver installation instructions to complete this step.
All other necessary components for programming data parallel devices will be installed with Data Parallel Extensions for Python.
2. Python Interpreter¶
You will need Python 3.8, 3.9, or 3.10 installed on your system. If you do not have one yet the easiest way to do that is to install Intel Distribution for Python*. It installs all essential Python numerical and machine learning packages optimized for the Intel hardware, including Data Parallel Extensions for Python*. If you have Python installation from another vendor, it is fine too. All you need is to install Data Parallel Extensions for Python manually as shown in the next section.
3. Data Parallel Extensions for Python¶
Skip this step if you already installed Intel © Distribution for Python.
The easiest way to install Data Parallel Extensions for Python is to install numba-dpex:
conda install numba-dpex
pip install numba-dpex
These commands install
numba-dpex along with its dependencies, including
and required compiler runtimes.
Before installing with conda or pip it is strongly advised to update
pip to latest versions