oneDNN is an open library of optimized deep learning ops for CPUs and Intel GPUs. Frameworks such as PyTorch, TensorFlow, OpenVINO, and ONNX Runtime integrate it for acceleration.
Overview
oneDNN is a cross-platform performance library of building blocks for deep learning. It provides tuned implementations of matrix multiplication, convolution, attention, normalization, and related operations, and serves as the acceleration layer behind several major AI frameworks.
The same API can target Intel and AMD64 CPUs, AArch64, RISC-V, and Intel graphics, with runtime hardware detection and JIT kernels specialized for ISA, core count, and cache. It supports many numeric types and quantization schemes, fuses post-ops into matmul and convolution, and offers a graph API for larger patterns such as scaled dot-product attention.
CPU builds can use OpenMP, TBB, SYCL, or threadpool runtimes; GPU paths use SYCL or OpenCL on supported Intel hardware, with experimental backends for other vendors. Pre-built packages and conda packages are published for common Linux and Windows CPU configurations, and source builds support custom engines.
Practitioners are steered toward framework integrations rather than calling oneDNN directly. The library sits under the UXL Foundation and includes developer guides, API reference, and examples for matmul, fusion, quantization, and GPU execution.
Key features
- CPU and Intel GPU primitive kernels
- Runtime ISA detection and JIT code
- Low-precision and quantization types
- Fused post-ops and graph API patterns
- OpenMP, TBB, and SYCL interoperability
- Pre-built Linux and Windows packages
- Conda packages for major architectures
- Framework integration as acceleration layer
Use cases
- Accelerating inference inside ML frameworks
- Custom C++ inference with tuned kernels
- Quantized and fused operator pipelines
- CPU and Intel GPU deep learning workloads