Skip to main content

MegakernelWorkspaceAdapter

Trait MegakernelWorkspaceAdapter 

Source
pub trait MegakernelWorkspaceAdapter {
    // Required methods
    fn buffer_decl(&self) -> BufferDecl;
    fn bootstrap_nodes(&self) -> Vec<Node>;

    // Provided methods
    fn guard_nodes(&self) -> Vec<Node> { ... }
    fn dispatch_nodes(&self) -> Vec<Node> { ... }
}
Expand description

Adapter implemented by any domain that wants a GPU-resident megakernel workspace without baking that domain into vyre-runtime.

Required Methods§

Source

fn buffer_decl(&self) -> BufferDecl

Buffer declaration inserted after the core megakernel buffers.

Source

fn bootstrap_nodes(&self) -> Vec<Node>

IR nodes that initialize resident workspace state.

Provided Methods§

Source

fn guard_nodes(&self) -> Vec<Node>

IR nodes that validate resident control-plane state before dispatch.

Source

fn dispatch_nodes(&self) -> Vec<Node>

IR nodes that run domain-owned phase/control handlers.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§