comparison example/Simple/ppe/Twice.cc @ 640:a909c50081c2

SimpeTask on Cell worked.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 20 Nov 2009 23:12:34 +0900
parents 8cc609285bbe
children
comparison
equal deleted inserted replaced
639:70c5c2d2eb24 640:a909c50081c2
18 length = s->read_size()/sizeof(int); 18 length = s->read_size()/sizeof(int);
19 19
20 for (int i = 0; i < length; i++) { 20 for (int i = 0; i < length; i++) {
21 o_data[i] = i_data[i] * 2; 21 o_data[i] = i_data[i] * 2;
22 } 22 }
23 s->printf("PPE %d end\n",s->get_cpuid());
23 24
24 return 0; 25 return 0;
25 } 26 }