Boost logo

Boost :

Subject: Re: [boost] Interest in a GPU computing library
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-09-18 16:27:21


On 09/18/2012 08:15 PM, Manjunath Kudlur wrote:

> Using a DSL to specify a function object, and transforming that to a C99
> string to pass down to the OpenCL driver is a nice idea. But it gets really
> ugly when the function object is anymore complex than _1+_2. I tried this
> once before, look here :
> https://github.com/keveman/carbon/blob/master/examples/thrust/discrete_voronoi.cu#L254
> I wouldn't want to write my function objects like that.

IMO DSELs are only a good idea if your language is high-level.
If you're using straight C++ rewritten with a convoluted syntax, there
is little advantage to it.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk