Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vsipl++] [patch] pwarp


  • To: Jules Bergmann <jules@xxxxxxxxxxxxxxxx>
  • Subject: Re: [vsipl++] [patch] pwarp
  • From: Stefan Seefeld <stefan@xxxxxxxxxxxxxxxx>
  • Date: Thu, 13 Dec 2007 12:54:59 -0500

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@xxxxxxxxxxxxxxxx
(650) 331-3385 x718