pyphi.cost.units_for_runtime#

pyphi.cost.units_for_runtime(seconds)[source]#

The units_per_job budget targeting seconds of CPU per shard.

Pass the result to pyphi.campaign.prepare_ces() to plan shards against a runtime deadline rather than an abstract work count. The estimate holds while a shard’s caches fit its memory request; a starved cache costs roughly a further 20%.

Examples

>>> round(units_for_runtime(3600))  # a one-hour shard
81818182
Parameters:

seconds (float)

Return type:

float