paranyversion

Parallelize any computation

Generalized map reduce for parallel computers (not distributed computing). Can process in parallel an infinite stream of elements.

Can process a very large file in parallel on a multicore computer; provided there is a way to cut your file into independent blocks (the 'demux' function). The processing function is called 'work'. The function gathering the results is called 'mux'. The number of processors running your computation in parallel is called 'nprocs'. The chunk size (number of items) processed by one call to the 'work' function is called 'csize'.

There is a minimalist Parmap module, if you want to switch to/from Parmap easily.

Read the corresponding ocamldoc before using.

USING THIS LIBRARY IN A MISSION CRITICAL, LONG-RUNNING SOFTWARE THAT IS NEVER SUPPOSED TO CRASH IS NOT ADVIZED. WHILE THIS LIBRARY IS HIGH PERFORMANCE, IT IS ALSO DANGEROUS. USE AT YOUR OWN RISKS.

AuthorFrancois Berenger
LicenseLGPL-2.0-or-later
Published
Homepagehttps://github.com/UnixJunkie/parany
Issue Trackerhttps://github.com/UnixJunkie/parany/issues
Maintainerunixjunkie@sdf.org
Availableos != "win32"
Dependencies
Source [http] https://github.com/UnixJunkie/parany/archive/v14.0.1.tar.gz
sha256=4fc7ff3be133a88652a2db4bce9f7489029719f3a0e997e36ada50e899d8c691
md5=56275cac64d97cbe2a703ef59b1c570d
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/parany/parany.14.0.1/opam
Required by