[vsipl++] [patch] pwarp
Stefan Seefeld
stefan at codesourcery.com
Thu Dec 13 17:54:59 UTC 2007
Jules Bergmann wrote:
> Stefan Seefeld wrote:
>> Jules Bergmann wrote:
>>> I need to put more thought into how handle
>>> some of the 8-bit math. Also, the location of the SPU kernel (in vsip)
>>> makes it unsightly to depend on code from vsip_csl.
>>
>> Right. We should think a bit about how to decouple that. In particular,
>> how to not make the task_manager.hpp file the central repository for all
>> tasks / task types.
>
> Yeah, I was thinking about that too. For library code like this, could
> we move the DEINE_TASK instantiation from task_manager.hpp to the file
> using the task?
I'm not sure, it will at least be quite fragile, as we want to generate
unique task-ids so we can meaningfully compare tasks to determine
whether to reuse the old one or not. This requires the reserve<>()
function (template) to be able to instantiate the Task_map, and hence,
needs to see all specializations.
This ought to be possible, but it requires some thought.
Thanks,
Stefan
--
Stefan Seefeld
CodeSourcery
stefan at codesourcery.com
(650) 331-3385 x718
More information about the vsipl++
mailing list