Registry / ai-ml / dpcpp-cpp-rt

dpcpp-cpp-rt

JSON →
library2026.0.0pypypiunverified

The `dpcpp-cpp-rt` package provides the essential runtime libraries and components for applications compiled with the Intel® oneAPI DPC++/C++ Compiler. It is a critical dependency for Python libraries like `dpctl` and `numba-dppy` that leverage SYCL for heterogeneous computing. This package primarily provides shared objects and header files, not directly imported Python modules. It aligns with the Intel oneAPI release cadence, typically receiving annual major updates and more frequent minor revisions.

pip install dpcpp-cpp-rt
INSTALL
IMPORT
SIG · DPCPP-CPP-RT
D
dpcpp-cpp-rt
ai-mlpythonv2026.0.0
Install
16.9s avg
Import
Disk
16MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2026.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
build_error
glibc
py 3.103.910 runs
installs and imports cleanly · install 16.9s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

No direct Python imports
This package provides runtime components for C++/SYCL, not Python modules for direct import.
Users often mistake this for a Python library that can be imported directly. It's a foundational runtime for other Python packages (e.g., dpctl) that expose SYCL capabilities.

The `dpcpp-cpp-rt` package provides the underlying runtime for SYCL-enabled applications. It does not have direct Python imports. Instead, Python libraries like `dpctl` (Data Parallel Control Library) leverage its presence. This example shows how `dpctl` would interact with the SYCL runtime that `dpcpp-cpp-rt` enables. Ensure your oneAPI environment is sourced before running Python code that uses SYCL.

import os # This package is a runtime, not directly imported. # Its presence allows other Python packages (like dpctl) to function. # Example using dpctl, which relies on dpcpp-cpp-rt: try: import dpctl print("dpctl successfully imported.") # Try to find a SYCL device try: device = dpctl.select_default_device() print(f"Selected SYCL device: {device.name}") except Exception as e: print(f"Could not select SYCL device. Ensure SYCL_DEVICE_FILTER is set if needed. Error: {e}") print("Make sure oneAPI environment is sourced and DPC++ runtime is configured correctly.") except ImportError: print("dpctl is not installed. This quickstart demonstrates usage of a library that depends on dpcpp-cpp-rt.") print("Install with: pip install dpctl") # You would typically set environment variables before running Python code # For example, to filter devices: # os.environ['SYCL_DEVICE_FILTER'] = 'opencl:gpu,cpu'
Debug
Known issues
gotchaThe `dpcpp-cpp-rt` package is a runtime dependency, not a Python library with modules intended for direct `import`. Attempting to `import dpcpp-cpp-rt` will result in a `ModuleNotFoundError`.
fix
Do not attempt to import `dpcpp-cpp-rt` directly. Instead, ensure it is installed, and then use Python libraries that depend on it (e.g., `dpctl`, `numba-dppy`).
affects: All versions
breakingIncorrect or incomplete environment setup (e.g., `PATH`, `LD_LIBRARY_PATH` on Linux, `DYLD_LIBRARY_PATH` on macOS) can prevent dependent applications from finding the DPC++ runtime libraries, leading to linker errors or device discovery failures.
fix
Always source the oneAPI `setvars.sh` (Linux/macOS) or `setvars.bat` (Windows) script from your oneAPI installation (`<install_dir>/oneapi/setvars.sh`) before running DPC++ or SYCL applications, including Python scripts that use libraries like `dpctl`.
affects: All versions
gotchaVersion mismatches between `dpcpp-cpp-rt` and other oneAPI components (like the DPC++ compiler, `dpctl`, `numba-dppy`) can lead to unexpected runtime errors or instability. It's recommended to maintain a consistent oneAPI installation.
fix
Install all oneAPI components from the same major release and, ideally, the same minor update. When using `pip` or `conda`, ensure your environment matches the oneAPI installation version used for development.
affects: All versions
Upgrade
Version history
2026.0.0latest on PyPI · released Apr 24, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
20
Amazon
1
OpenAI (training)
1
Resources
dpcpp-cpp-rt — pip install dpcpp-cpp-rt · libregistry