lair.parallel#

Run a function over many inputs in worker processes.

parallelize() wraps a function so that it maps over an iterable with a multiprocessing pool. It counts only the CPUs this process may use (a Slurm job’s, not the whole node’s).

Functions

parallelize

Parallelize a function across an iterable.