Skip to main content

Module kernels

Module kernels 

Source
Expand description

Session-scoped registry of parent kernels.

ArrayKernels holds two kinds of kernels. Each kernel is registered for a parent and a child:

  • The optimizer uses parent-reduce rules to rewrite a parent array from one of its children, without decoding data.
  • The executor uses execute-parent kernels to execute a parent array through one of its children.

The parent is the encoding of the parent array, or the function of a scalar function array. When more than one kernel is registered for the same parent and child, they are tried in registration order until one applies.

KernelSession is the session variable that holds the registry. Its Default implementation registers the built-in kernels of vortex-array.

Structs§

ArrayKernels
Session-scoped registry of parent-reduce rules and execute-parent kernels.
EncodingParent
The ReduceParent kind of an array encoding.
KernelSession
Session-scoped holder for the optimizer kernel registry.
ScalarFnParent
The ReduceParent kind of a scalar function.

Traits§

ArrayKernelsExt
Extension trait for accessing the optimizer kernel registry from a VortexSession.
DynExecuteParentKernel
Type-erased execute-parent kernel stored in the session registry.
ReduceParent
The parent that a parent-reduce rule is registered under.

Type Aliases§

ExecuteParentFn
Function pointer for a plugin-provided parent execution.