accelforge.mapper package#

Subpackages#

Module contents#

class accelforge.mapper.Metrics[source]#

Bases: Flag

Metrics used to optimize mappings or reported by model.

ACTIONS = 32#

Action counts.

DETAILED_MEMORY_USAGE = 64#

Memory usage broken down by tensor and Einsum.

DYNAMIC_ENERGY = 4#

The amount of dynamic energy consumed by the workload.

ENERGY = 2#

The amount of energy consumed by the workload.

LATENCY = 1#

The amount of time taken to execute the workload.

LEAK_ENERGY = 8#

The amount of leak energy consumed by the workload.

RESOURCE_USAGE = 16#

The amount of resources used by the workload.

When used as a mapper objective, this objective is multivariate, and must consider every resource available to the hardware.

__new__(value)#
classmethod all_metrics()[source]#
includes_dynamic_energy()[source]#

Returns True if the metrics include dynamic energy, either alone or as part of total energy. False otherwise.

Return type:

bool

includes_leak_energy()[source]#

Returns True if the metrics include leak energy, either alone or as part of total energy. False otherwise.

Return type:

bool