<div>Thanks a lot Ben!</div><div><br></div><div>Shame on me, I&#39;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">&lt;<a href="mailto:benl@ouroborus.net">benl@ouroborus.net</a>&gt;</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>
&gt;&gt; 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&#39;m incurring in? :D<br>
&gt;<br>
&gt; It&#39;s because you didn&#39;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&#39;t run you get the default implementation which is just &quot;undefined&quot;. 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&#39;s less easy to forget.<br>
<font color="#888888"><br>
Ben.<br>
<br>
</font></blockquote></div><br>