qat.runtime.legacy module
- class LegacyRuntime(engine, results_pipeline=None, connection_mode=<ConnectionMode.DEFAULT: 3>)
Bases:
BaseRuntime
A runtime that provides a wrapper around legacy engines for compatibility with the new stack.
- Parameters:
engine¶ (
InstructionExecutionEngine
) – The execution engine for a target machine.results_pipeline¶ (
Optional
[PassManager
]) – Optionally provided a pipeline for results processing. If not provided, a default pipeline is provided.connection_mode¶ (
ConnectionMode
) – Specifies how the connection is maintained.
- connect_engine(flag)
Connect the engine according to the connection mode.
- disconnect_engine(flag)
Disconnect the engine according to the connection mode.
- execute(package, res_mgr=None, met_mgr=None, **kwargs)
Fully execute QatIR against the hardware using a legacy execution engines.
- Parameters:
package¶ (
InstructionBuilder
) – The program as an instruction builder.res_mgr¶ (
Optional
[ResultManager
]) – Optionally provide a results manager to save pass information.met_mgr¶ (
Optional
[MetricsManager
]) – Optionally provide a metric manager to save pass information.
- Returns:
Execution results.