saealib.execution.RuntimeRegistry#
- class saealib.execution.RuntimeRegistry(registrations=())[source]#
Bases:
objectRuntime selection errors on conflict; compiler rules do not select a runtime.
- Parameters:
registrations (tuple[RuntimeRegistration, ...])
Methods
Select and instantiate the unique matching provider. |
|
Return the effective offer from the selected runtime provider. |
|
Add a uniquely named runtime provider. |
|
Return registered providers in registration order. |
|
Replace the uniquely named runtime provider under |
|
Remove the runtime provider registered under |
Method Details
- RuntimeRegistry.__init__(registrations=())[source]#
- Parameters:
registrations (tuple[RuntimeRegistration, ...])
- Return type:
None
- RuntimeRegistry.create(optimizer, plan)[source]#
Select and instantiate the unique matching provider.
- Parameters:
optimizer (object)
plan (ExecutablePlan)
- Return type:
- RuntimeRegistry.offered_capabilities(optimizer)[source]#
Return the effective offer from the selected runtime provider.
- Parameters:
optimizer (object)
- Return type:
frozenset[str]
- RuntimeRegistry.register(registration)[source]#
Add a uniquely named runtime provider.
- Parameters:
registration (RuntimeRegistration)
- Return type:
None
- RuntimeRegistry.registrations()[source]#
Return registered providers in registration order.
- Return type:
tuple[RuntimeRegistration, …]
- RuntimeRegistry.replace(name, registration)[source]#
Replace the uniquely named runtime provider under
name.- Parameters:
name (str)
registration (RuntimeRegistration)
- Return type:
None