pyphi.cost.units_for_runtime#
- pyphi.cost.units_for_runtime(seconds)[source]#
The
units_per_jobbudget targetingsecondsof 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