Skip to main content

Code style: black Imports: isort pre-commit Coverage Status Generate Documentation Join the chat at https://matrix.to/#/#Data-Parallel-Python_community:gitter.im OpenSSF Scorecard

oneAPI logo

Data Parallel Control

Data Parallel Control or dpctl is a Python library that allows users to control the execution placement of a compute kernel on an XPU.

The compute kernel can be a code:

  • written by the user, e.g., using numba-dpex
  • that is part of a library, such as oneMKL

The dpctl library is built upon the SYCL standard. It implements Python bindings for a subset of the standard runtime classes that allow users to:

  • query platforms
  • discover and represent devices and sub-devices
  • construct contexts and queues

dpctl features classes for SYCL Unified Shared Memory (USM) management.

The library helps authors of Python native extensions written in C, Cython, or pybind11 to access dpctl objects representing SYCL devices, queues, and memory.

Dpctl 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 (from Intel's channel - see instructions below) or pip package managers. It is also available in the Intel(R) Distribution for Python (IDP).

Intel(R) oneAPI

You can find the most recent release of dpctl every quarter as part of the Intel(R) oneAPI releases.

To get the library from the latest oneAPI release, follow the instructions from Intel(R) oneAPI installation guide.

NOTE: You need to install the Intel(R) oneAPI AI Analytics Tookit to get IDP and dpctl.

Conda

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

conda install dpctl -c https://software.repos.intel.com/python/conda/ -c conda-forge --override-channels

Pip

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

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

Installing the bleeding edge

To try out the latest features, install dpctl from our development channel on Anaconda cloud:

conda install dpctl -c dppy/label/dev -c conda-forge --override-channels

Building

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

Examples

Our examples are located in the examples/ folder and are organized in sub-folders. Examples in the Python/ folder demonstrate how to inspect the heterogeneous platform, select a device, create an execution queue, and how to control device memory allocation and execution placement.

Examples in Cython/, C/, and Pybind11 folders demonstrate creation of SYCL-powered native Python extensions. Please refer to each folder's README document for directions on how to build and use each example.

Running Tests

Tests are located in folder dpctl/tests.

To run the tests, use:

pytest --pyargs dpctl

Running full test suite requires working C/C++ compiler and installed Cython package. To run the test suite without these, use:

pytest --pyargs dpctl -k "not test_cython_api and not test_c_headers"

Release files for dpctl 0.22.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for dpctl 0.22.1
File
dpctl-0.22.1-0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
dpctl-0.22.1-0-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details
dpctl-0.22.1-0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
dpctl-0.22.1-0-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details
dpctl-0.22.1-0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
dpctl-0.22.1-0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details
dpctl-0.22.1-0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
dpctl-0.22.1-0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details
dpctl-0.22.1-0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
dpctl-0.22.1-0-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details

Total release size: 13.6 MB

Release files / dpctl-0.22.1-0-cp314-cp314-win_amd64.whl

Download URL dpctl-0.22.1-0-cp314-cp314-win_amd64.whl
Size 1.5 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
e922465861e97d34bf053563aa71b13c22639ac95b916288e19c567de297b2e7
BLAKE2b-256 checksum
How to use checksums
0b9a55023cc989488eba60bccf96b8b4fa95a84c00b8b6105107c71dc1ce046c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / dpctl-0.22.1-0-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL dpctl-0.22.1-0-cp314-cp314-manylinux_2_28_x86_64.whl
Size 1.3 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
14edbe66fd560cdd861c37704e7f28ab29d7faca6d010bda0fe8302857035dc0
BLAKE2b-256 checksum
How to use checksums
50f420101038952589a6193552fe7efd95ed0c37105f3ed2a9baedd618440d2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / dpctl-0.22.1-0-cp313-cp313-win_amd64.whl

Download URL dpctl-0.22.1-0-cp313-cp313-win_amd64.whl
Size 1.5 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
e976273835a9bb3082a075f2f7f93cf0949940bc58d7b62298b38821eb6c4ba8
BLAKE2b-256 checksum
How to use checksums
92c4c4b7b874e088c054752a45d42d08012f2e366f1f32a98c192426c9eb6a29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / dpctl-0.22.1-0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL dpctl-0.22.1-0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 1.3 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
17812ccfe78034ef32d632f7c83f3b383c3edff9eb70868a244606151067294c
BLAKE2b-256 checksum
How to use checksums
5626057ae9f3f63e24f5ab768dace9bc55a338457480bf8fef89629c2410a652
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / dpctl-0.22.1-0-cp312-cp312-win_amd64.whl

Download URL dpctl-0.22.1-0-cp312-cp312-win_amd64.whl
Size 1.4 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
49d9e0abd9331c58712897c7dc9fc9c372166ff1a4ce716fb68887fea091ab18
BLAKE2b-256 checksum
How to use checksums
9cc503ad4a1435bc119c4da843c72ef2a87913e3ab69a40ff37a05bb261e3b61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / dpctl-0.22.1-0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL dpctl-0.22.1-0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 1.3 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
4917c17a295169d2bb72c4a670501b47f15d2da0351e55d596445095137e7cef
BLAKE2b-256 checksum
How to use checksums
1549af6d4ca273136c3ac4c48b5c50f47a9648c574c7f6bc6f5cb4cec6c3c005
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / dpctl-0.22.1-0-cp311-cp311-win_amd64.whl

Download URL dpctl-0.22.1-0-cp311-cp311-win_amd64.whl
Size 1.4 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
250a6b6ed44a6fe35ef48c32fa8e117518c4f1779c20fd8d5a5a8375e23bd632
BLAKE2b-256 checksum
How to use checksums
06ab101d54965c53dd79ac5944ce84175b07d39929b3ef91632c557b6b8e8320
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / dpctl-0.22.1-0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL dpctl-0.22.1-0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 1.3 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
19b90062f02ca9a8e8c534169e607b251c05d0da51a4c21d3c3e7c96d9e70bb7
BLAKE2b-256 checksum
How to use checksums
2a49aab063632b43991ae740150f5ec5e9c40447ac4648c8f733c5827f6acc92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / dpctl-0.22.1-0-cp310-cp310-win_amd64.whl

Download URL dpctl-0.22.1-0-cp310-cp310-win_amd64.whl
Size 1.4 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
046cbd5af2910e5981fd8112b5acc9941d87334bb138cf293c86f8aa1ce8a16d
BLAKE2b-256 checksum
How to use checksums
826f60874b50635cd51efea5d7ad20e314e72e608a4e4694a2883a1ac4a7298d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / dpctl-0.22.1-0-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL dpctl-0.22.1-0-cp310-cp310-manylinux_2_28_x86_64.whl
Size 1.3 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
06306e5af597f76584399486fd931fec8fea24e91149ecd2df92aeb367e8bd02
BLAKE2b-256 checksum
How to use checksums
a07a7fb4549d0b77b5a6bf0e444c12bb9ce2e0dd05cc803d0198bf62bd723704
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release history Release notifications | RSS feed

This release

0.22.1 This release

10 release files

0.20.1

8 release files

0.19.0

8 release files

0.18.3

8 release files

0.18.1

8 release files

0.17.0

6 release files

0.16.0

4 release files

0.15.0

4 release files

0.14.5

4 release files

0.11.2

6 release files

0.11.1

6 release files

0.8.0

4 release files

0.6.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page