Debugging Parallel Functions

A few notes on me trying to debug my problems with the Evaluation Strategies approach to parallels

— I know
zipWith ($) :: [b -> c] -> [b] -> [c] parMap rpar :: (a -> b) -> [a] -> [b]

— I have the functions
aQuads :: [GraphATuple] pQuads :: [GraphPTuple] processAQuadrant :: GraphATuple -> GraphPTuple -> GraphATuple

{- I’m trying to write a function which process the aQuad list using the pQuad List as parameters in parallel -}

–my attempt

runSimParallel aQuads pQuads = parMap rpar (zipWith (processAQuadrant aQuads $)) pQuads

Leave a Reply

Your email address will not be published. Required fields are marked *