Skip to content
forked from IntelPython/dpnp

NumPy drop-in replacement for Intel(R) XPUs

License

Notifications You must be signed in to change notification settings

antonwolfy/dpnp

 
 

Code style: black Imports: isort Pre-commit Conda package Coverage Status Build Sphinx OpenSSF Scorecard

oneAPI logo

DPNP - Data Parallel Extension for NumPy*

Data Parallel Extension for NumPy* or dpnp is a Python library that implements a subset of NumPy* that can be executed on any data parallel device. The subset is a drop-in replacement of core NumPy* functions and numerical data types.

API coverage summary

Full documentation

Dpnp is the core part of a larger family of data-parallel Python libraries and tools to program on XPUs.

Installing

You can install the library using conda, mamba or pip package managers. It is also available as part of the Intel(R) Distribution for Python (IDP).

Intel(R) Distribution for Python

You can find the most recent release of dpnp every quarter as part of the IDP releases.

To get the library from the latest release, follow the instructions from Get Started With Intel® Distribution for Python.

Conda

To install dpnp from the Intel(R) conda channel, use the following command:

conda install dpnp -c https://software.repos.intel.com/python/conda/ -c conda-forge

Pip

The dpnp can be installed using pip obtaining wheel packages either from PyPi or from Intel(R) channel. To install dpnp wheel package from Intel(R) channel, run the following command:

python -m pip install --index-url https://software.repos.intel.com/python/pypi dpnp

Installing the bleeding edge

To try out the latest features, install dpnp using our development channel on Anaconda cloud:

conda install dpnp -c dppy/label/dev -c https://software.repos.intel.com/python/conda/ -c conda-forge

Building

Refer to our Documentation for more information on setting up a development environment and building dpnp from the source.

Running Tests

Tests are located in folder dpnp/tests.

To run the tests, use:

python -m pytest --pyargs dpnp

About

NumPy drop-in replacement for Intel(R) XPUs

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 59.1%
  • C++ 35.6%
  • Cython 3.0%
  • CMake 2.2%
  • Other 0.1%