Mercurial > hg > Game > Cerium
comparison TaskManager/Cell/CellTaskManagerImpl.cc @ 1061:ca73615ab585 draft
command option name changed (spuidle -> speidle)
author | tkaito@henri |
---|---|
date | Wed, 15 Dec 2010 18:18:36 +0900 |
parents | b4b35255a99c |
children | 4d79aed93a07 |
comparison
equal
deleted
inserted
replaced
1060:b4b35255a99c | 1061:ca73615ab585 |
---|---|
127 sendTaskList(); | 127 sendTaskList(); |
128 } | 128 } |
129 | 129 |
130 | 130 |
131 void | 131 void |
132 debug_check_spu_idle(QueueInfo<HTask> * activeTaskQueue) | 132 debug_check_spe_idle(QueueInfo<HTask> * activeTaskQueue) |
133 { | 133 { |
134 printf("spu_idle : size=%d \n", activeTaskQueue->length()); | 134 printf("spu_idle : size=%d \n", activeTaskQueue->length()); |
135 HTask *task = activeTaskQueue->getFirst(); | 135 HTask *task = activeTaskQueue->getFirst(); |
136 | 136 |
137 do { | 137 do { |
150 // SPE side | 150 // SPE side |
151 do { | 151 do { |
152 poll(); | 152 poll(); |
153 } while (ppeManager->activeTaskQueue->empty() && spe_running >0 ); | 153 } while (ppeManager->activeTaskQueue->empty() && spe_running >0 ); |
154 if (spe_running < spu_limit) { | 154 if (spe_running < spu_limit) { |
155 debug_check_spu_idle(ppeManager->activeTaskQueue); | 155 debug_check_spe_idle(ppeManager->activeTaskQueue); |
156 } | 156 } |
157 } while (!ppeManager->activeTaskQueue->empty() || | 157 } while (!ppeManager->activeTaskQueue->empty() || |
158 !activeTaskQueue->empty() || | 158 !activeTaskQueue->empty() || |
159 spe_running >0); | 159 spe_running >0); |
160 if (!waitTaskQueue->empty()) { | 160 if (!waitTaskQueue->empty()) { |