| Copyright | (c) Dominik Schrempf 2019 |
|---|---|
| License | GPL-3 |
| Maintainer | dominik.schrempf@gmail.com |
| Stability | unstable |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
ELynx.Tools.Concurrent
Contents
Description
Creation date: Tue May 7 10:33:24 2019.
MWC
getNGen :: Int -> Maybe [Word32] -> IO [GenIO] Source #
Get a number of generators, possibly with a fixed seed.
Parallel stuff
getChunks :: Int -> Int -> [Int] Source #
For a given number of capabilities and number of calculations, get chunk sizes. The chunk sizes will be as evenly distributed as possible and sum up to the number of calculations.
parMapChunk :: Int -> (a -> b) -> [a] -> [b] Source #
Parallel map with given chunk size.