Skip to main content

Crate ironaccelerator_metal

Crate ironaccelerator_metal 

Source
Expand description

§ironaccelerator-metal

Apple Metal backend. Will dispatch through:

  • Metal Performance Shaders (MPS) — MPSMatrixMultiplication, etc.
  • MPSGraph — JIT-compiled compute graphs, the “official” fast path.
  • MLX-style kernels — fused attention / RMSNorm / sampling kernels ported from MLX (Apple’s ML framework).
  • CoreML — opportunistic offload to the Apple Neural Engine for subgraphs whose ops are ANE-supported.

§Status

v0.1 scaffold: backend trait wired up. Apple-only FFI bindings (objc2 / metal-rs) gated behind cfg(target_vendor = "apple") will land next.

Re-exports§

pub use backend::MetalBackend;
pub use backend::METAL_BACKEND;

Modules§

backend
Metal Backend impl. Enumerates live MTLDevices on Apple hosts; on non-Apple hosts the backend reports unavailable and enumerates nothing.

Functions§

register
Registers the Metal backend with reg.