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.1-0-cp314-cp314-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.14Windows x86-64

dpctl-0.22.1-0-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.1-0-cp313-cp313-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.13Windows x86-64

dpctl-0.22.1-0-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.1-0-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

dpctl-0.22.1-0-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.1-0-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

dpctl-0.22.1-0-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.1-0-cp310-cp310-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.10Windows x86-64

dpctl-0.22.1-0-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.1-0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: dpctl-0.22.1-0-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.1-0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 e922465861e97d34bf053563aa71b13c22639ac95b916288e19c567de297b2e7
MD5 3541b6c4f805566ef95d3bc4ba54ff80
BLAKE2b-256 0b9a55023cc989488eba60bccf96b8b4fa95a84c00b8b6105107c71dc1ce046c

See more details on using hashes here.

File details

Details for the file dpctl-0.22.1-0-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dpctl-0.22.1-0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 14edbe66fd560cdd861c37704e7f28ab29d7faca6d010bda0fe8302857035dc0
MD5 612a8c6a0fe3a1c9e9f00576a2488796
BLAKE2b-256 50f420101038952589a6193552fe7efd95ed0c37105f3ed2a9baedd618440d2c

See more details on using hashes here.

File details

Details for the file dpctl-0.22.1-0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: dpctl-0.22.1-0-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.1-0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e976273835a9bb3082a075f2f7f93cf0949940bc58d7b62298b38821eb6c4ba8
MD5 f3b5a1a1b04521bcfffd61a91cfb705c
BLAKE2b-256 92c4c4b7b874e088c054752a45d42d08012f2e366f1f32a98c192426c9eb6a29

See more details on using hashes here.

File details

Details for the file dpctl-0.22.1-0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dpctl-0.22.1-0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 17812ccfe78034ef32d632f7c83f3b383c3edff9eb70868a244606151067294c
MD5 cf3f9b0d52672fcce2344385e998c66f
BLAKE2b-256 5626057ae9f3f63e24f5ab768dace9bc55a338457480bf8fef89629c2410a652

See more details on using hashes here.

File details

Details for the file dpctl-0.22.1-0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: dpctl-0.22.1-0-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.1-0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 49d9e0abd9331c58712897c7dc9fc9c372166ff1a4ce716fb68887fea091ab18
MD5 90a86932482ba65312524364204840f7
BLAKE2b-256 9cc503ad4a1435bc119c4da843c72ef2a87913e3ab69a40ff37a05bb261e3b61

See more details on using hashes here.

File details

Details for the file dpctl-0.22.1-0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dpctl-0.22.1-0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4917c17a295169d2bb72c4a670501b47f15d2da0351e55d596445095137e7cef
MD5 1718dbdf4bde113ef3b823a9697b34fc
BLAKE2b-256 1549af6d4ca273136c3ac4c48b5c50f47a9648c574c7f6bc6f5cb4cec6c3c005

See more details on using hashes here.

File details

Details for the file dpctl-0.22.1-0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: dpctl-0.22.1-0-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.1-0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 250a6b6ed44a6fe35ef48c32fa8e117518c4f1779c20fd8d5a5a8375e23bd632
MD5 869000aa6ded6546317134d4513b3ae3
BLAKE2b-256 06ab101d54965c53dd79ac5944ce84175b07d39929b3ef91632c557b6b8e8320

See more details on using hashes here.

File details

Details for the file dpctl-0.22.1-0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dpctl-0.22.1-0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 19b90062f02ca9a8e8c534169e607b251c05d0da51a4c21d3c3e7c96d9e70bb7
MD5 617c0a92bcbc860c21733959cce9a0e9
BLAKE2b-256 2a49aab063632b43991ae740150f5ec5e9c40447ac4648c8f733c5827f6acc92

See more details on using hashes here.

File details

Details for the file dpctl-0.22.1-0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: dpctl-0.22.1-0-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.1-0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 046cbd5af2910e5981fd8112b5acc9941d87334bb138cf293c86f8aa1ce8a16d
MD5 e006590ac6ca544c4f7ec4c6616c24be
BLAKE2b-256 826f60874b50635cd51efea5d7ad20e314e72e608a4e4694a2883a1ac4a7298d

See more details on using hashes here.

File details

Details for the file dpctl-0.22.1-0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dpctl-0.22.1-0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 06306e5af597f76584399486fd931fec8fea24e91149ecd2df92aeb367e8bd02
MD5 2ada5bc8eefc637473083cdafece532b
BLAKE2b-256 a07a7fb4549d0b77b5a6bf0e444c12bb9ce2e0dd05cc803d0198bf62bd723704

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