diff options
Diffstat (limited to 'examples/parallel.hs')
-rw-r--r-- | examples/parallel.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/parallel.hs b/examples/parallel.hs index 8653bc3..9d5ae3b 100644 --- a/examples/parallel.hs +++ b/examples/parallel.hs | |||
@@ -5,8 +5,7 @@ import Numeric.LinearAlgebra | |||
5 | import Control.Parallel.Strategies | 5 | import Control.Parallel.Strategies |
6 | import System.Time | 6 | import System.Time |
7 | 7 | ||
8 | inParallel = parMap rnf id | 8 | inParallel = parMap rwhnf id |
9 | -- rwhnf also works in this case | ||
10 | 9 | ||
11 | -- matrix product decomposed into p parallel subtasks | 10 | -- matrix product decomposed into p parallel subtasks |
12 | parMul p x y = fromBlocks [ inParallel ( map (x <>) ys ) ] | 11 | parMul p x y = fromBlocks [ inParallel ( map (x <>) ys ) ] |