[Haskell-beginners] The Data Parallel Haskell example from the Haskell Wiki won't work

João Paulo Pizani Flor joaopizani at gmail.com
Wed Sep 29 07:47:51 EDT 2010


Thanks a lot Ben!

Shame on me, I've really forgotten that PRAGMA line, but now everything
works as it should...

[]s

João Paulo Pizani Flor
joaopizani at gmail.com
Computer Science - 2007
Federal University of Santa Catarina - Brazil



On Wed, Sep 29, 2010 at 4:27 AM, Ben Lippmeier <benl at ouroborus.net> wrote:

>
> >> 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
> >
> > 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
>
> You can also add -fvectorise on the command line, but I prefer using the
> OPTIONS pragma because it's less easy to forget.
>
> Ben.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20100929/c2ba6619/attachment.html


More information about the Beginners mailing list