Registers a named kernel implementation that can be selected by
shard_map(..., kernel = "name").
register_kernel(
name,
impl,
signature = NULL,
footprint = NULL,
supports_views = TRUE,
description = NULL
)Invisibly, the registered kernel metadata.
Kernel name (string).
Function implementing the kernel. It must accept the shard descriptor as its first argument.
Optional short signature string for documentation.
Optional footprint hint. Either a constant (bytes) or a
function (shard, ...) -> list(class='tiny'|'medium'|'huge', bytes=...).
Logical. Whether the kernel is intended to operate on shard views without slice materialization.
Optional human-readable description.
A "kernel" is just a function that shard_map can call for each shard. The registry lets shard_map attach additional metadata (footprint hints, supports_views) for scheduling/autotuning.