Core Distribution
-
- New User
- Posts: 3
- Joined: Mon Jun 02, 2014 4:04 pm
Core Distribution
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.
-
- XCore Legend
- Posts: 1126
- Joined: Thu May 27, 2010 10:08 am
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
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