<div>Thanks a lot Ben!</div><div><br></div><div>Shame on me, I've really forgotten that PRAGMA line, but now everything works as it should...</div><div><br></div><div>[]s</div><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</div><div>Federal University of Santa Catarina - Brazil</div><br>
<br><br><div class="gmail_quote">On Wed, Sep 29, 2010 at 4:27 AM, Ben Lippmeier <span dir="ltr"><<a href="mailto:benl@ouroborus.net">benl@ouroborus.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
>> 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<br>
><br>
> It's because you didn't add {-# OPTIONS -fvectorise #-} when compiling the DPHVectMul.hs module. The GHC vectoriser rewrites calls to fromPArrayP to the real implementations in its back-end library, but if the vectoriser doesn't run you get the default implementation which is just "undefined". I agree its an atrocious error message. It should have a real one in the head / GHC 7.0<br>
<br>
</div>You can also add -fvectorise on the command line, but I prefer using the OPTIONS pragma because it's less easy to forget.<br>
<font color="#888888"><br>
Ben.<br>
<br>
</font></blockquote></div><br>