Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  The Data Parallel Haskell example from the   Haskell Wiki
      won't work (Jo?o Paulo Pizani Flor)


----------------------------------------------------------------------

Message: 1
Date: Wed, 29 Sep 2010 08:47:51 -0300
From: Jo?o Paulo Pizani Flor <[email protected]>
Subject: Re: [Haskell-beginners] The Data Parallel Haskell example
        from the        Haskell Wiki won't work
To: Ben Lippmeier <[email protected]>
Cc: [email protected]
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="utf-8"

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
[email protected]
Computer Science - 2007
Federal University of Santa Catarina - Brazil



On Wed, Sep 29, 2010 at 4:27 AM, Ben Lippmeier <[email protected]> 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-0001.html

------------------------------

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 27, Issue 62
*****************************************

Reply via email to