Intel® oneAPI Unified Runtime Libraries

2025.3.3 · active · verified Tue Apr 14

The Intel® oneAPI Unified Runtime Libraries (`intel-cmplr-lib-ur`) package contains shared common libraries essential for providing a unified interface to device-agnostic runtimes like DPC++ across various software platforms. It is a foundational component within the Intel oneAPI ecosystem, often installed alongside common licensing and compiler-specific runtimes. The current version is 2025.3.3, with a rapid release cadence, indicating frequent updates.

Warnings

Install

Imports

Quickstart

The `intel-cmplr-lib-ur` package is a core runtime library, not typically directly interacted with in Python. Its primary function is to enable other oneAPI-optimized Python libraries, such as `dpnp` (Data Parallel NumPy) and `dpctl` (Data Parallel Control Library), to access and utilize Intel hardware (CPUs, GPUs). The quickstart demonstrates how to use `dpnp` and `dpctl`, which rely on the underlying runtime components provided by `intel-cmplr-lib-ur`, to perform array operations on a selected SYCL-enabled device.

# This package provides underlying runtime libraries.
# It's primarily a dependency for other oneAPI Python libraries or C/C++ applications.
# For example, to use oneAPI accelerated NumPy-like arrays via dpnp (which depends on underlying oneAPI runtimes):

# Ensure intel-cmplr-lib-ur is installed (usually via 'pip install intel-cmplr-lib-ur')
# Then, install higher-level Python bindings like dpnp or dpctl:
# pip install dpnp dpctl

import dpnp as np
import dpctl

# Select a SYCL-enabled device (e.g., GPU if available, otherwise CPU)
try:
    queue = dpctl.SyclQueue('gpu')
    print("Running on GPU.")
except dpctl.SyclQueueError:
    queue = dpctl.SyclQueue('cpu')
    print("Running on CPU.")

a = np.asarray([1.0, 2.0, 3.0], sycl_queue=queue)
b = np.asarray([4.0, 5.0, 6.0], sycl_queue=queue)
c = a + b

print(f"Result of a + b on {queue.device.name}: {c}")

view raw JSON →