A chip does compute_speed operations a second and, at the same time, moves memory_speed bytes a second between its memory and its math units. One step of a model needs work operations and bytes_moved bytes. Write step_time(work, bytes_moved, compute_speed, memory_speed): how many seconds the step takes.
A chip has two workers that run at the same time: one does the math, one moves bytes in and out of memory. One step of a model needs some of each. Watch both workers go, then say how long the step takes. Chips swap in other kinds of step.
step_time(work, bytes_moved, compute_speed, memory_speed)| work | operations this step needs | e.g. 70000000000000 |
| bytes_moved | bytes it needs to move in and out of memory | e.g. 3200000000 |
| compute_speed | operations the chip does per second | e.g. 1000000000000000 |
| memory_speed | bytes the chip moves per second, at the same time as the math | e.g. 4000000000000 |
| returns | how many seconds the step takes | |