Mercurial > hg > Game > Cerium
comparison TaskManager/test/UtilizationTest/ppe/Multi.cc @ 1737:6bd9a57eb44d draft
minor fix
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 02 Nov 2013 17:34:40 +0900 |
parents | 7673e2ad2623 |
children | 537707f376c8 |
comparison
equal
deleted
inserted
replaced
1736:ade645630b86 | 1737:6bd9a57eb44d |
---|---|
18 B = (float*)s->get_input(rbuf, 1); | 18 B = (float*)s->get_input(rbuf, 1); |
19 C = (float*)s->get_output(wbuf, 0); | 19 C = (float*)s->get_output(wbuf, 0); |
20 | 20 |
21 long task_id = (long)s->get_param(0); | 21 long task_id = (long)s->get_param(0); |
22 current_task_id = task_id; | 22 current_task_id = task_id; |
23 // long i = s->x; | 23 long i = s->x; |
24 for(int i=0; i<DATA_NUM; i++) { | 24 // for(int i=0; i<DATA_NUM; i++) { |
25 C[i]=A[i]*B[i]; | 25 C[i]=A[i]*B[i]; |
26 } | 26 // } |
27 if(current_task_id != task_id) | 27 if(current_task_id != task_id) |
28 fprintf(stderr,"duplicate task %ld %ld\n",current_task_id,task_id); | 28 fprintf(stderr,"duplicate task %ld %ld\n",current_task_id,task_id); |
29 | 29 |
30 return 0; | 30 return 0; |
31 } | 31 } |