pyphi.cost.shard_cache_budget_bytes#

pyphi.cost.shard_cache_budget_bytes(memory_bytes)[source]#

Cache ceiling for a shard whose memory request is memory_bytes.

The request less a reserve for the allocations in flight when the ceiling is reached, since the caches stop storing at the ceiling but the computation continues to allocate above it.

Parameters:

memory_bytes (int)

Return type:

int