Skip to main content

Crate oxicuda_backend

Crate oxicuda_backend 

Source
Expand description

Abstract compute backend for GPU-accelerated operations.

The ComputeBackend trait defines the interface for GPU computation, allowing higher-level crates (SciRS2, oxionnx, ToRSh, TrustformeRS) to use GPU acceleration without coupling to specific GPU APIs.

§Architecture

┌─────────────────────────────┐
│  SciRS2 / ToRSh / oxionnx  │
│         (consumers)         │
└─────────────┬───────────────┘
              │  dyn ComputeBackend
┌─────────────▼───────────────┐
│       ComputeBackend        │
│     (trait definition)      │
└─────────────┬───────────────┘
              │
┌─────────────▼───────────────┐
│  CudaBackend / MetalBackend │
│    (concrete impls)         │
└─────────────────────────────┘

Enums§

BackendError
Error type for backend operations.
BackendTranspose
Transpose mode for matrix operations.
BinaryOp
Element-wise binary operation.
ReduceOp
Reduction operation applied along an axis.
UnaryOp
Element-wise unary operation.

Traits§

ComputeBackend
Abstract compute backend trait.

Type Aliases§

BackendResult
Result type for backend operations.