vibespatial.runtime

Submodules

Attributes

Classes

ExecutionMode

Enum where members are also (and must be) strings

RuntimeSelection

Functions

has_gpu_runtime(→ bool)

select_runtime(→ RuntimeSelection)

set_execution_mode(→ None)

Override the session execution mode. Pass None to clear.

get_requested_mode(→ ExecutionMode)

Return the session-wide requested execution mode.

Package Contents

vibespatial.runtime.EXECUTION_MODE_ENV_VAR = 'VIBESPATIAL_EXECUTION_MODE'
class vibespatial.runtime.ExecutionMode

Enum where members are also (and must be) strings

AUTO = 'auto'
GPU = 'gpu'
CPU = 'cpu'
class vibespatial.runtime.RuntimeSelection
requested: ExecutionMode
selected: ExecutionMode
reason: str
vibespatial.runtime.has_gpu_runtime() bool
vibespatial.runtime.select_runtime(requested: ExecutionMode | str = ExecutionMode.AUTO) RuntimeSelection
vibespatial.runtime.set_execution_mode(mode: ExecutionMode | str | None) None

Override the session execution mode. Pass None to clear.

Also invalidates the adaptive runtime snapshot cache so the planner re-evaluates on the next dispatch.

vibespatial.runtime.get_requested_mode() ExecutionMode

Return the session-wide requested execution mode.

Priority: explicit set_execution_mode() > env var > AUTO.