annotate TaskManager/kernel/ppe/Task.cc @ 1551:57317332f6ef draft

create fft example
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Sun, 17 Feb 2013 12:59:12 +0900
parents 1b225972ae88
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #include "Task.h"
736
1b225972ae88 cut printf
hiroki@localhost.localdomain
parents: 713
diff changeset
2 #include "Scheduler.h"
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3
687
25afcd4ae380 test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 686
diff changeset
4 void
736
1b225972ae88 cut printf
hiroki@localhost.localdomain
parents: 713
diff changeset
5 Task::print(Scheduler *s)
687
25afcd4ae380 test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 686
diff changeset
6 {
736
1b225972ae88 cut printf
hiroki@localhost.localdomain
parents: 713
diff changeset
7 s->printf("task id %d task size = %d param size %d "
687
25afcd4ae380 test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 686
diff changeset
8 "inData size %d "
697
4b6242d03512 TaskArray on going...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 689
diff changeset
9 "outData size %d\n", command, size(), param_count, inData_count, outData_count
687
25afcd4ae380 test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 686
diff changeset
10 );
697
4b6242d03512 TaskArray on going...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 689
diff changeset
11 for(int i=0; i< param_count && i<5; i++) {
1551
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
12 // large param_count shall be a bug
57317332f6ef create fft example
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
13 s->printf("param %d = 0x%ld\n", i, (long)param(i));
687
25afcd4ae380 test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 686
diff changeset
14 }
25afcd4ae380 test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 686
diff changeset
15
25afcd4ae380 test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 686
diff changeset
16 }
685
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 667
diff changeset
17
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
18
685
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 667
diff changeset
19 /* end */