Skip to main content

A lightweight Python wrapper for a subset of SYCL.

Project description

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"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

dpctl-0.22.0-2-cp314-cp314-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.14Windows x86-64

dpctl-0.22.0-2-cp314-cp314-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

dpctl-0.22.0-2-cp313-cp313-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.13Windows x86-64

dpctl-0.22.0-2-cp313-cp313-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

dpctl-0.22.0-2-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

dpctl-0.22.0-2-cp312-cp312-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

dpctl-0.22.0-2-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

dpctl-0.22.0-2-cp311-cp311-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

dpctl-0.22.0-2-cp310-cp310-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.10Windows x86-64

dpctl-0.22.0-2-cp310-cp310-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

File details

Details for the file dpctl-0.22.0-2-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: dpctl-0.22.0-2-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for dpctl-0.22.0-2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 c182b326a89c5e61c741099f3f80a83387b757872f9772e201f4a67790c8f15c
MD5 ffe601af732e53e13c7f20db52cebbb4
BLAKE2b-256 4bd2bcf50f65cc73f91f0365b3456e78c7de6c5bd87fa4d97292e3c8ffb218d0

See more details on using hashes here.

File details

Details for the file dpctl-0.22.0-2-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dpctl-0.22.0-2-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c447cf6afb937b63913c497366477a607b73f8824339661b05f80cc25bce78dd
MD5 3dd378f892a8d5bffdc128f4c5627f33
BLAKE2b-256 97e04ac30a202066c9d5fba5f74cefb3e1db0bdd2b8e447955e77aaa1f8b4516

See more details on using hashes here.

File details

Details for the file dpctl-0.22.0-2-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: dpctl-0.22.0-2-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for dpctl-0.22.0-2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b3e43566d8ea0b74d261770250a6090a6ef6e762a9e67fd78e36051baa39d04e
MD5 b65ed85fde5ee1f7a2386b0a06b085b9
BLAKE2b-256 db16905f7f8482efeb7a4863795b62cc04a520f0fb74cf67d1caf868a4e4c9ca

See more details on using hashes here.

File details

Details for the file dpctl-0.22.0-2-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dpctl-0.22.0-2-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9c8a94f460a5c644b8d18bbb2dfe317a750cfe11704cee92facb08859c14e64c
MD5 91de0cc79090b8b05af8433b5244c663
BLAKE2b-256 0c61d3503d99d22619973ad750b8365ca272661717be906ada178c854c21f209

See more details on using hashes here.

File details

Details for the file dpctl-0.22.0-2-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: dpctl-0.22.0-2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for dpctl-0.22.0-2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0041c93f980bb54ba7653003c4df586dd6d3154f6a6f0aeaac616a2c760f010d
MD5 12ddac74bd554af9f9af388cdac683ad
BLAKE2b-256 400920047785a12d87326ff9e98d7e22cd7da3662e530b8d4fcf6600d6557387

See more details on using hashes here.

File details

Details for the file dpctl-0.22.0-2-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dpctl-0.22.0-2-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c45659b1f73976903a36441ce15a6292e81b6a7093a72cc2c003c0d93b3e7bd8
MD5 d067a56265ffb625347d8ec1b6d8e1d3
BLAKE2b-256 7068ea8d37610648ac3f3d36440828582e90cf2d60e2378b818421e87b3fe0c0

See more details on using hashes here.

File details

Details for the file dpctl-0.22.0-2-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: dpctl-0.22.0-2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for dpctl-0.22.0-2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f2bb084413f15d3e9d5f2179a1cd003d8441b5717fba3a3623b44aaba6fc4c83
MD5 99d1a3435c5fe2ece68c8c1d8a02ee9e
BLAKE2b-256 cb491a4940e8799a8bc391b4d2f3e3b690bca6235d9ad82b441e313eaba94b3b

See more details on using hashes here.

File details

Details for the file dpctl-0.22.0-2-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dpctl-0.22.0-2-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 43a204e044849213e42e259e967be6357fb8366dad7797007c70b01d29435c12
MD5 3ef838d44becd2b4c7bb67eb09a27358
BLAKE2b-256 1f6a31eb9035d2df4b00ad2842910e05233b45008d0e7496980baa4ab0c10893

See more details on using hashes here.

File details

Details for the file dpctl-0.22.0-2-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: dpctl-0.22.0-2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for dpctl-0.22.0-2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 20d7b574f3edd6e841624dbe124478c0e7f5550bad1b85bcfde278e5979f8c1d
MD5 359099ded1aafe72b7a1703d6f7b7ec1
BLAKE2b-256 f2077db06c31f621b07378eeaa83ad9143c059c9927728639c0d4c79babbba6a

See more details on using hashes here.

File details

Details for the file dpctl-0.22.0-2-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dpctl-0.22.0-2-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0cc65df76fa0b0cedb1691321d922c3c9bb46319accfef665586c9b3cc9664f3
MD5 2f4bb223890116c4f7c58893b555035b
BLAKE2b-256 127273480e79a67fb97dc8e51b068ee21c0837b4324f5488828e9a0186df04d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page