mstar.engine.accelerator_graph_backend#
Functions
|
Classes
|
Graph and stream operations required by the accelerator graph runners. |
|
|
|
|
|
|
|
|
|
- class mstar.engine.accelerator_graph_backend.AcceleratorGraphBackend(device)[source]#
Bases:
ABCGraph and stream operations required by the accelerator graph runners.
Implementations own their native graph API and capture recovery. Runners do not need to know which runtime supplies those operations.
- Parameters:
device (torch.device)
- abstractmethod capture(graph, *, pool=None, stream=None)[source]#
- Parameters:
graph (CapturedGraph)
pool (AcceleratorGraphPool | None)
stream (Any)
- Return type:
- abstractmethod recover_failed_capture(pool, stream)[source]#
- Parameters:
pool (AcceleratorGraphPool)
stream (Any)
- Return type:
None
- class mstar.engine.accelerator_graph_backend.AcceleratorGraphPool(handle: 'Any')[source]#
Bases:
object- Parameters:
handle (Any)
- on_failure(graph)[source]#
- Parameters:
graph (CapturedGraph)
- Return type:
None
- class mstar.engine.accelerator_graph_backend.CUDAGraphBackend(device)[source]#
Bases:
_TorchGraphBackend- Parameters:
device (torch.device)
- class mstar.engine.accelerator_graph_backend.CapturedGraph(*args, **kwargs)[source]#
Bases:
Protocol
- class mstar.engine.accelerator_graph_backend.XPUGraphBackend(device)[source]#
Bases:
_TorchGraphBackend- Parameters:
device (torch.device)
- class mstar.engine.accelerator_graph_backend.XPUGraphPool(handle: 'Any', failed_graph: 'CapturedGraph | None' = None)[source]#
Bases:
AcceleratorGraphPool- Parameters:
handle (Any)
failed_graph (CapturedGraph | None)
- failed_graph: CapturedGraph | None = None#
- on_failure(graph)[source]#
- Parameters:
graph (CapturedGraph)
- Return type:
None