yarr-1.3.2: Yet another array library

Safe HaskellNone

Data.Yarr.Utils.Fork

Documentation

makeForkEachSliceSource

Arguments

:: (Shape sh, Arity n, v ~ VecList n) 
=> Int

Number of threads to fork the work on

-> sh

Lower bound

-> sh

Upper bound

-> v (Work sh a)

Per-slice interval works

-> Int -> IO (v a)

Producer of per-thread work, which returns piece of result for each slice

makeForkSlicesOnceSource

Arguments

:: (Shape sh, Arity n) 
=> Int

Number of threads to fork the work on

-> VecList n (sh, sh)

(lower bound, upper bound) for each slice

-> VecList n (Work sh a)

Per-slice interval works

-> Int -> IO [(Int, a)]

Producer of per-thread work, which returns pieces of results: [(slice number, result)]

makeForkSource

Arguments

:: Shape sh 
=> Int

Number of threads to fork the work on

-> sh

Lower bound

-> sh

Upper bound

-> Work sh a

Interval work

-> Int -> IO a

Producer of per-thread work