mcframework.benchmark.BackendSpec#

class mcframework.benchmark.BackendSpec[source]#

Bases: object

Description of one execution backend to benchmark.

Attributes:
labelstr

Display name / result key (e.g. "torch-mps").

backendstr

The backend value passed to MonteCarloSimulation.run() ("sequential", "thread", "process", or "torch").

torch_devicestr

Device for backend="torch" ("cpu", "mps", "cuda"). Ignored by non-Torch backends.

Methods

classmethod __new__(*args, **kwargs)#
__init__(label: str, backend: str, torch_device: str = 'cpu') None#