[Cbe-oss-dev] [off topic] Debugging advice
Kazunori Asayama
asayama at sm.sony.co.jp
Fri Aug 1 17:14:00 EST 2008
Mads Alhof Kristiansen wrote:
> A little background:
> As part of a project I need to load tasks (programs) onto a number of
> SPEs. The tasks should be able to move around on the SPEs according to
> my cooperative scheduling strategy for which I have implemented a
> simple yield 'syscall' (although it's not a syscall as it is all
> happening in userspace). Basically what I do is that I use the SDK to
> load small SPE-'kernels' onto every SPE so they can handle the loading
> and context switches of my tasks. The 'kernels' are responsible also
> for setting up stacks and simple allocation of LS-memory (alloc. not
> implemented yet). When a task is waiting for data from another tasks
> it yields and is placed in a queue in main-memory until data is ready
> and a SPE is free. Then 'kernel' on the free SPE loads the tasks and
> resumes execution. The tasks are compiled as raw binaries (e.g. not
> ELF) with pic-code for easy portability and simplicity. It works -
> well, mostly - when I'm not experiencing the bug.
BTW, what you'd like to do seems to be quite similar to what MARS
provides. Can MARS help your project?
Thanks,
--
(ASAYAMA Kazunori
(asayama at sm.sony.co.jp))
t
More information about the cbe-oss-dev
mailing list