<div>Hello dear Haskell People! I'm currently very interested in doing some parallel programming in Haskell, specially in using the Data Parallel Haskell stuff...</div><div><br></div><div>So as a first step I tried to emulate the vector multiply example found in the Haskell Wiki: <a href="http://www.haskell.org/haskellwiki/GHC/Data_Parallel_Haskell#A_simple_example">http://www.haskell.org/haskellwiki/GHC/Data_Parallel_Haskell#A_simple_example</a></div>
<div><br></div><div>The code I've written (two files) for this example is in the following pastebins:</div><div><br></div><div>DPHVecMul.hs: <a href="http://paste.org/pastebin/view/22899">http://paste.org/pastebin/view/22899</a></div>
<div>Main.hs: <a href="http://paste.org/pastebin/view/22900">http://paste.org/pastebin/view/22900</a></div><div><br></div><div>I've compiled successfully both files and linked them, exactly as described in the Wiki. But when I run the resulting executable, the following error shows up:</div>
<div><br></div><div>"dotp: Prelude.undefined"</div><div><br></div><div>It's seems (from the tests I've done) that the call to the function <b>fromPArrayP </b>of the module <b>Data.Parallel.Array.Prelude </b>results always in undefined. In fact, I've taken a look at the function definition in the docs, and in fact it always returns undefined. It doesn't make ANY SENSE to me :P</div>
<div><br></div><div>Has someone been able to successfully compile and run this example code?? If so, what am I doing wrong? Is there some obvious error I'm incurring in? :D</div><div><br></div><div><br></div><div>Regards,</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><br clear="all">João Paulo Pizani Flor<div>
<a href="mailto:joaopizani@gmail.com" target="_blank">joaopizani@gmail.com</a></div><div>Computer Science - 2007/1</div><div>Federal University of Santa Catarina - Brazil</div><br>