An experimental operation can outgrow a tensor library before the surrounding program needs to change. EvoX Compiler’s November 23–24, 2026 default-branch updates add ways to insert compiler-specific operations, compile edited intermediate code and select custom backend implementations. The useful question is where the extension should run: inside a compiler, as a runtime kernel, or as an entire backend. Implementation and guide

A removable optical cartridge joins a modular rail with a continuous red light path

Concept illustration: replace one stage while keeping the surrounding pipeline explicit.

Choose the boundary for custom work

custom_call emits a named StableHLO call with declared results and optional backend configuration. The external compiler decides whether that target exists and can be lowered. inline_stablehlo instead embeds a raw snippet: operands use %in0 and subsequent indices, while outputs must be assigned as %out0 and subsequent indices. Result specifications remain explicit. Names, configuration and snippets are static graph-specializing values. Operation contract

These interfaces do not register an arbitrary kernel with IREE or PJRT. For a Python or Triton kernel that must execute at runtime, the existing external_call registration path remains the relevant mechanism. For a portable operation expressed in ordinary EvoX Compiler operations, a block with its own decomposition is another choice. This distinction prevents a compiler declaration from being mistaken for a runtime implementation.

Edit the intermediate program, then compile

For example, a compiler developer can inspect an executable with source_text(), edit its StableHLO and submit that text through compile_text with input and output specifications. This bypasses tracing and graph construction, then uses the normal compile and load stages. The specifications describe outer tuples, so the execution contract must preserve tuple inputs and outputs. The external compiler validates the module; successful text submission alone does not establish numerical correctness. Pipeline implementation

Keep a small input set and compare results against the original program after each edit. A missing custom target should be diagnosed at compiler legalization, not worked around by silently switching backend. The NumPy interpreter and native CPU engine reject these compiler extensions explicitly. The new in-graph operations also lack automatic batching and differentiation rules, so those transformations require a supported alternative. Capabilities and limitations

Plug in a backend deliberately

Backend instances now remain consistent across pipeline stages. Registration supports explicit replacement and removal, while entry points allow external packages to provide backends. A compiler backend declares capabilities and supported dtypes and implements compilation and loading; an empty dtype set rejects graphs. Custom IREE compiler and runtime modules can be supplied through options or environment variables. This makes testing a custom compiler build possible without confusing its runtime with the default module. Backend extension guide

Check transfers and numerical comparisons separately

The same development window changes Vulkan transfers: uploads use mapped coherent buffers up to 16 MiB and a copy path above that threshold; readback distinguishes host memory from GPU memory that merely happens to be host-visible. The recorded measurements concern one Intel integrated-GPU/Mesa/IREE setup, so measure transfer and execution separately on your own hardware. Transfer implementation

Native CPU changes also reuse storage for large buffers and incoming arrays, targeting repeated allocation costs. Reduction workers split independent outputs while preserving each output’s fold order. Compiler adapters additionally expose split_reduction_threshold and split_reduction_non_exact; changing reduction policy calls for checking numerical results as well as timing. GitHub · GitHub · GitHub · GitHub

A native CPU power correction also aligns exponent handling with NumPy’s floating-power path, while the parity harness explicitly distinguishes exact integer/boolean checks from tolerance-based floating comparisons. Before adopting this source revision, retain your reference outputs, test the chosen compiler and device, and check the comparison tolerance. The earlier v0.1.1 release explains the original preparation pipeline; these source changes extend how developers can customize it. Numerical correction

← Back to UpdatesBack to top ↑