Skip to main content

Module executor

Module executor 

Source
Expand description

Job executors. The JobExecutor trait is what a worker cell — local or a remote peer — implements. LocalKernelExecutor is the real one: it runs each job’s kernel through the actual engine (the dynamic GEMM and the real KGE trainer), so a dispatched job produces genuine computed work — never a stub.

In the distributed setting the executor is untrusted (it could be a stranger’s solar node). That is exactly why dispatch always follows execution with independent verification ([super::verify]) before any payment.

Structs§

LocalKernelExecutor
Executes jobs on the local CPU through the real engine kernels.

Traits§

JobExecutor
A node that can execute swarm jobs. Object-safe so it can be boxed and swapped (a local cell, a remote peer proxy, a test double).