Topic
  • No replies
dada1
dada1
1 Post

Pinned topic SPE mutithread Problem(ps3)

‏2010-12-15T06:03:32Z |
Hi

I got a little problem ,because I,m newer on ps3 cell,
when I write a simple code for ps3,following.
for(j=0;j<600000000;j++)
{
for(i=0;i<4;i++)
{
c[i] = a[i] * b[i];
}
}
for(i=0;i<4;i++)
{
printf("c%d = %d",i,c[i]);
}

Then,I create one spe to run this code.

Also, I create six spe and six pthread , each spe to run following
for(j=0;j<100000000;j++)
{
for(i=0;i<4;i++)
{
c[i] = a[i] * b[i];
}
}
for(i=0;i<4;i++)
{
printf("c%d = %d",i,c[i]);
}

(The code I wrote in Attach File.)

But,I found they have same time.

why? I think that create six spe must be faster , because parallel computation.