boulderopalscaleup.runtime.Runtime
class boulderopalscaleup.runtime.Runtime(options)Manages hardware systems and executes compiled programs.
A runtime holds a set of registered hardware systems and executes compiled programs against them. It supports the context manager protocol for automatic resource cleanup.
Use Runtime.new() as the preferred constructor.
Variables
- is_closed (bool) –
Trueonce the runtime and all its systems have been closed. - systems (dict [ str , System ]) – Registered hardware systems, keyed by system identifier.
Methods
| init | |
| add_system | Register a system with this runtime. |
| bind | Compile a manifest into an executable against registered systems. |
| close | Close the runtime and all registered systems. |
| new | Create a new runtime with the provided options. |
| run | Bind and immediately execute a manifest. |