Struct MemorySpace¶
Defined in File batch_policy.hpp
Struct Documentation¶
-
struct MemorySpace¶
A place a value can live, as the batched cost model prices it. Random access memory is the reference space (weight 1, no traffic cost beyond the roofline term); a slower space such as local disk holds values at little or no cost against the peak budget but charges for moving them.
Public Members
-
double residency_weight = 1.0¶
What one resident element counts against
BatchPolicy::peak_thresholdwhile the value is idle: 1 for memory, 0 for a space that does not use it.
-
double read_cost = 0.0¶
Cost of reading one element from the space, in the units of the performance cost (FLOPs, or roofline FLOP-equivalents).
-
double write_cost = 0.0¶
Cost of writing one element to the space, in the same units.
-
double residency_weight = 1.0¶