Contains a parallel runner implementation, with support for various backends
microscopes.kernels.parallel.
runner
(runners, backend='multiprocessing', **kwargs)¶A parallel runner. Note the parallelism is applied across runners (currently, each runner is assumed to be single-threaded).
Parameters: | runners : list of runner objects backend : string, one of {‘multiprocessing’, ‘multyvac’}
processes : int, optional
layer : string
core : string
volume : string, optional
|
---|
Notes
To use the multyvac backend, you must first authenticate your machine (e.g. by running multyvac setup) beforehand.
get_latents
()¶Returns a list of the current state of each of the runners.
run
(r, niters=10000)¶Run each runner for niters, using the backend supplied in the constructor for parallelism.
Parameters: | r : rng niters : int |
---|