Skip to main content

Universal Hardware-Aware Compute Runtime — a modular, capability-driven execution stack

Project description

UHCR

A Python framework for hardware-optimized computation with JIT compilation across x86_64, AArch64, RISC-V, and CUDA.

Python 3.10+ License: Apache-2.0 Tests: passing Docs: GitHub Pages PyPI: v3.0.0

Full documentation

Install

pip install uhcr

Quick Example

import uhcr

@uhcr.jit(eager=True)
def compute(a, b):
    return (a + b) * 2

Features

  • JIT Compilation - Traces Python functions and compiles to native machine code
  • Multi-ISA Code Generation - Targets x86_64 (AVX2), AArch64 (NEON), and RISC-V (RVV)
  • CUDA Backend - GPU acceleration via PTX JIT for NVIDIA hardware
  • Optimization Pipeline - Constant folding, dead code elimination, strength reduction, CSE
  • Hardware Detection - Automatic CPUID, GPU probe, and NUMA topology discovery
  • Plugin System - Extend with custom backends, kernels, and passes via TOML manifests
  • Tensor API - High-level tensor operations dispatched to the optimal backend
  • Built-in Benchmarks - Performance measurement suite for comparing execution paths

Documentation

Experimental Status

UHCR v3 includes the CLI tool (uhcr) and expanded hardware detection (RAM speed/type, CPU cache topology). These are now stable and production-ready as of v3.0.0.

License

Apache-2.0

Project details


Download files

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

Source Distribution

uhcr-3.1.0.tar.gz (72.3 kB view details)

Uploaded Source

Built Distribution

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

uhcr-3.1.0-py3-none-any.whl (81.1 kB view details)

Uploaded Python 3

File details

Details for the file uhcr-3.1.0.tar.gz.

File metadata

  • Download URL: uhcr-3.1.0.tar.gz
  • Upload date:
  • Size: 72.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for uhcr-3.1.0.tar.gz
Algorithm Hash digest
SHA256 196eeeeaf57efac0b5540393c26f169b5cb4435e9d82d8ba7c8813498ae5dc4e
MD5 0dfe4259d37faf4d3bb7e8eece1b01e2
BLAKE2b-256 50357ac60a42e54bdad573f007706b5ce2e99521b3b2868f37eee2c139cc181f

See more details on using hashes here.

File details

Details for the file uhcr-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: uhcr-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 81.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for uhcr-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9c1e7d67911cc7ebf8c5e44a1d1e5e43eb4e88af1bc25463b294a88d352908f
MD5 34674b3c800830bce8ec9b3ad24c266a
BLAKE2b-256 758d90b99b5a71db8e6047d2d28514adcdab38aa748871283833ae9544e2f35c

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