annotate TaskManager/Cell/CellTaskManagerImpl.h @ 1133:bb17a03bab60 draft

fix.
author kaito@dolphins
date Wed, 16 Feb 2011 02:08:17 +0900
parents 2a63ba2c9506
children bccd192a43b2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
1 #ifndef INCLUDED_CELL_TASK_MANAGER_IMPL
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
2 #define INCLUDED_CELL_TASK_MANAGER_IMPL
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
3
307
3fc86ddf5d1c clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
4 #include "TaskManagerImpl.h"
3fc86ddf5d1c clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
5 #include "FifoTaskManagerImpl.h"
3fc86ddf5d1c clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
6 #include "SpeThreads.h"
65
519d24aa7ac8 *** empty log message ***
gongo
parents: 61
diff changeset
7
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
8 class CellTaskManagerImpl : public TaskManagerImpl {
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
9 public:
67
7d2874fb0671 *** empty log message ***
gongo
parents: 65
diff changeset
10 /* constructor */
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
11 CellTaskManagerImpl(int num = 1) : TaskManagerImpl(num) {}
501
7ddbe22d4cdb Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 496
diff changeset
12 ~CellTaskManagerImpl();
67
7d2874fb0671 *** empty log message ***
gongo
parents: 65
diff changeset
13
65
519d24aa7ac8 *** empty log message ***
gongo
parents: 61
diff changeset
14 /* variables */
957
3b96a09faf8e quue info working on Cell.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 955
diff changeset
15 QueueInfo<TaskList> **taskListInfo;
3b96a09faf8e quue info working on Cell.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 955
diff changeset
16 QueueInfo<TaskList> **speTaskList; // running task
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
17
65
519d24aa7ac8 *** empty log message ***
gongo
parents: 61
diff changeset
18 SpeThreads *speThreads;
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
19 FifoTaskManagerImpl *ppeManager;
637
20665e4060ea not yet worked...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 538
diff changeset
20 int spe_running;
1057
8cd123d2f3ca debug_check_spu_idle add. commandline option [-spuidle].
tkaito@henri
parents: 957
diff changeset
21 int spuIdle;
65
519d24aa7ac8 *** empty log message ***
gongo
parents: 61
diff changeset
22
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
23 /* functions */
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
24 // system
1057
8cd123d2f3ca debug_check_spu_idle add. commandline option [-spuidle].
tkaito@henri
parents: 957
diff changeset
25 void init(int spuIdle);
501
7ddbe22d4cdb Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 496
diff changeset
26 void run();
808
3c404a32719c TaskListInfo version
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 722
diff changeset
27 void poll();
1123
2a63ba2c9506 bug fix.
yutaka@localhost.localdomain
parents: 1077
diff changeset
28 void poll1(int spu_limit);
2a63ba2c9506 bug fix.
yutaka@localhost.localdomain
parents: 1077
diff changeset
29 void poll2(int spu_limit);
936
178fbcc81fda dead lock on spu/ppu mail
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 833
diff changeset
30 void mail_check(int id);
1077
325b6c6d7d65 use one activeTaskQueue
yutaka@localhost.localdomain
parents: 1067
diff changeset
31 //void set_runTaskList(*QueueInfo<HTask>);
325b6c6d7d65 use one activeTaskQueue
yutaka@localhost.localdomain
parents: 1067
diff changeset
32 void set_runTaskList(QueueInfo<HTask>* activeTaskQueue);
722
55d70a61dedc CellTaskManager fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 720
diff changeset
33 void sendTaskList();
501
7ddbe22d4cdb Cell inData/outData DMA removal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 496
diff changeset
34 void append_activeTask(HTaskPtr);
672
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 650
diff changeset
35 void show_profile() ;
27fec8c70c9c add profiling code
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 650
diff changeset
36 void start_profile() ;
833
577bde5d0cec poling (may recurse..)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 808
diff changeset
37 void polling();
1066
04a42a788fa2 speidle init fix.
tkaito@henri
parents: 1065
diff changeset
38 void debug_check_spe_idle(QueueInfo<HTask> * activeTaskQueue, int spe_running_);
1067
5ad8fb1dc70f print_arch add.
tkaito
parents: 1066
diff changeset
39 void print_arch();
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
40 private:
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents: 70
diff changeset
41 void send_taskList(int id);
937
ecafd19a1d83 Sort working on spu cpu == 1 or -a case
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 936
diff changeset
42 void show_dead_lock_info();
ecafd19a1d83 Sort working on spu cpu == 1 or -a case
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 936
diff changeset
43
58
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
44 };
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
45
7492eb28b577 *** empty log message ***
gongo
parents:
diff changeset
46 #endif