Core Distribution

If you have a simple question and just want an answer.
prerna
New User
Posts: 3
Joined: Mon Jun 02, 2014 4:04 pm

Core Distribution

Post by prerna »

I want to know which core is using when we are using parallel communication (par). I also want to assign 10 par task, is it possible ? How can i assign more than 8 task simultaneously using xmos startKIT.


User avatar
infiniteimprobability
XCore Legend
Posts: 1126
Joined: Thu May 27, 2010 10:08 am

Post by infiniteimprobability »

It is possible, with restrictions.
Obviously you have 500MIPS across 8 logical cores - that's the hardware. However, as long as you write you tasks as a

while(1){

  select{

...

then you can combine multiple tasks onto the same core. Effectively it flattens mutliple tasks out into a single big select, so gives you a simple co-oprtative multi-tasking structure. It means each case needs to complete quickly (so keep everything responsive), but works well.

The i/o library in startKIT does this...

Have a read through this: https://www.xmos.com/published/how-defi ... e-function