CompileRequest

@Serializable
data class CompileRequest(val sourceHash: BobbinHash, val target: Target, val optLevel: OptLevel)

The arguments of a ring-dispatched compile task: which source kernel to compile, for which Target, at which OptLevelcompile(sourceHash, target, optLevel) → variantHash.

Compilation is just another warp op. Instead of imperatively calling WarpNode.publishVariant on a compiler node, any peer enqueues a TaskDescriptor built by CompileOp.descriptor; the compile request then travels, is claimed, and is executed through exactly the same ring-dispatch machinery as every other task. The winning compiler node runs its registered compile op (WarpNode.registerCompiler), which publishes the variant via WarpNode.publishVariant and records the variant's BobbinHash (as UTF-8 hex) on the results board.

Encoded to/from the TaskDescriptor.args bytes with CBOR via encode/decode.

Constructors

Link copied to clipboard
constructor(sourceHash: BobbinHash, target: Target, optLevel: OptLevel)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The optimization level of the requested variant.

Link copied to clipboard

Content address of the raw/source bobbin to compile.

Link copied to clipboard

The platform the requested variant is built for.

Functions

Link copied to clipboard

Serialises this request to the TaskDescriptor.args wire form (CBOR).