saealib.execution.RuntimeRegistry#

class saealib.execution.RuntimeRegistry(registrations=())[ソース]#

ベースクラス: object

Runtime selection errors on conflict; compiler rules do not select a runtime.

パラメータ:

registrations (tuple[RuntimeRegistration, ...])

Methods

__init__

create

Select and instantiate the unique matching provider.

offered_capabilities

Return the effective offer from the selected runtime provider.

register

Add a uniquely named runtime provider.

registrations

Return registered providers in registration order.

replace

Replace the uniquely named runtime provider under name.

unregister

Remove the runtime provider registered under name.

Method Details

RuntimeRegistry.__init__(registrations=())[ソース]#
パラメータ:

registrations (tuple[RuntimeRegistration, ...])

戻り値の型:

None

RuntimeRegistry.create(optimizer, plan)[ソース]#

Select and instantiate the unique matching provider.

パラメータ:
戻り値の型:

ExecutionRuntime

RuntimeRegistry.offered_capabilities(optimizer)[ソース]#

Return the effective offer from the selected runtime provider.

パラメータ:

optimizer (object)

戻り値の型:

frozenset[str]

RuntimeRegistry.register(registration)[ソース]#

Add a uniquely named runtime provider.

パラメータ:

registration (RuntimeRegistration)

戻り値の型:

None

RuntimeRegistry.registrations()[ソース]#

Return registered providers in registration order.

戻り値の型:

tuple[RuntimeRegistration, ...]

RuntimeRegistry.replace(name, registration)[ソース]#

Replace the uniquely named runtime provider under name.

パラメータ:
戻り値の型:

None

RuntimeRegistry.unregister(name)[ソース]#

Remove the runtime provider registered under name.

パラメータ:

name (str)

戻り値の型:

None