I have a number of compute-bound graphics programs written in Haskell.
(Fractal generators, ray tracers, that kind of thing.) GHC offers
several concurrency and parallelism abstractions, but what's the best
way to use these to get images rendered as fast as possible, using the
available compute
Hi Andrew,
2009/9/15 Andrew Coppin :
> ...
> I'm presuming that sparking every individual point is going to create
> billions of absolutely tiny sparks, which probably won't give great
> performance. We could spark every line rather than every point?
> ...
You should just try: no one can say if p
Block, line or 'beam' decomposition tends to work well for raytracing tasks,
because they tend to give you a good cache locality and don't create a
ridiculous explosion of parallel jobs.
You'll need to do some tuning to figure out the right granularity for the
decomposition. But typically a few hu
On Tue, Sep 15, 2009 at 8:48 AM, Andrew Coppin
wrote:
> Using explicit threads has the nice side-effect...
side-effects are bad! ;-)
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Andrew Coppin wrote:
(OK, well the *best* way is to use the GPU. But AFAIK that's still a
theoretical research project, so we'll leave that for now.)
Works for me :-)
http://claudiusmaximus.goto10.org/cm/2009-09-24_fl4m6e_in_haskell.html
There doesn't need to be a sound theoretical foundation
This is seriously cool stuff!!!
Maybe it's time to start a "Haskell Demo Scene" :-)
(what's a "demo scene"? See http://en.wikipedia.org/wiki/Demoscene )
PS: Note that Conal Elliott also was generating GPU code using Haskell
with Vertigo back in 2004: http://conal.net/papers/Vertigo/
On Thu,
Awesome!
On Thu, Sep 24, 2009 at 7:47 AM, Peter Verswyvelen wrote:
> This is seriously cool stuff!!!
>
> Maybe it's time to start a "Haskell Demo Scene" :-)
>
> (what's a "demo scene"? See http://en.wikipedia.org/wiki/Demoscene )
>
> PS: Note that Conal Elliott also was generating GPU code using
This is just awesome indeed.
You should create a haskell wiki page about that, so that "beginners" could
see Haskell can do that (TM) (yeah, some beginners doubt of it).
On Thu, Sep 24, 2009 at 1:02 PM, Olex P wrote:
> Awesome!
>
>
> On Thu, Sep 24, 2009 at 7:47 AM, Peter Verswyvelen wrote:
>
>
On Thu, 24 Sep 2009, Alp Mestan wrote:
This is just awesome indeed.
I'm impressed, too!
You should create a haskell wiki page about that, so that "beginners" could see
Haskell
can do that (TM) (yeah, some beginners doubt of it).
Don't miss to add it to
http://www.haskell.org/haskellwiki