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: v4.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
  • Distributed Computing - Protocol server (REST & gRPC) with distributed worker coordination
  • Storage Optimization - High-performance memory pooling and hierarchical caching
  • 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.5.0 includes the CLI tool (uhcr) with Docker and Kubernetes containerization support (--docker, --kubernetes), expanded hardware detection (RAM speed/type, CPU cache topology), and multi-ISA code generation. These are now stable and production-ready as of v3.5.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-4.0.0.tar.gz (131.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-4.0.0-py3-none-any.whl (142.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for uhcr-4.0.0.tar.gz
Algorithm Hash digest
SHA256 82bd1948582214a539a5cc111088eb60edeb506789382297ccdf776a68365ae3
MD5 cd6ee3f44eb0c04da543e0927e5e6935
BLAKE2b-256 fa121fdca57c503cd184f58a6353ef8fc6952f67880ca12a424c20c707d2c9b4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uhcr-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d64440b72005a981c61b7d80165d4c7c8098aa715c51545f3df29a89c8bc365a
MD5 3df1d89ed601a8424df95e2a5e01c4cd
BLAKE2b-256 94ec8e3d9cdf2dcde0b4b27ca2c3f77860a9c9092a83bafd5a30b44327be11ce

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