pyphi.cost.shard_memory_bytes#

pyphi.cost.shard_memory_bytes(max_repertoire_cells)[source]#

Estimated peak memory of a shard from its largest repertoire.

REPERTOIRE_FACTOR × 8 bytes × max_repertoire_cells + BASE_MEMORY_BYTES + CACHE_HEADROOM_BYTES. The factor and base are calibration constants; the headroom is the cache allowance that shard_cache_budget_bytes() enforces during execution. Requests derived from this estimate are rounded with round_memory_bytes().

Parameters:

max_repertoire_cells (int)

Return type:

int