Mercurial > hg > Game > Cerium
changeset 1061:ca73615ab585 draft
command option name changed (spuidle -> speidle)
author | tkaito@henri |
---|---|
date | Wed, 15 Dec 2010 18:18:36 +0900 |
parents | b4b35255a99c |
children | f994f5032299 |
files | TaskManager/Cell/CellTaskManagerImpl.cc TaskManager/kernel/main.cc |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Cell/CellTaskManagerImpl.cc Wed Dec 15 18:00:05 2010 +0900 +++ b/TaskManager/Cell/CellTaskManagerImpl.cc Wed Dec 15 18:18:36 2010 +0900 @@ -129,7 +129,7 @@ void -debug_check_spu_idle(QueueInfo<HTask> * activeTaskQueue) +debug_check_spe_idle(QueueInfo<HTask> * activeTaskQueue) { printf("spu_idle : size=%d \n", activeTaskQueue->length()); HTask *task = activeTaskQueue->getFirst(); @@ -152,7 +152,7 @@ poll(); } while (ppeManager->activeTaskQueue->empty() && spe_running >0 ); if (spe_running < spu_limit) { - debug_check_spu_idle(ppeManager->activeTaskQueue); + debug_check_spe_idle(ppeManager->activeTaskQueue); } } while (!ppeManager->activeTaskQueue->empty() || !activeTaskQueue->empty() ||
--- a/TaskManager/kernel/main.cc Wed Dec 15 18:00:05 2010 +0900 +++ b/TaskManager/kernel/main.cc Wed Dec 15 18:18:36 2010 +0900 @@ -34,19 +34,19 @@ main(int argc, char *argv[]) { int machineNum = 1; - int spuIdle = 6; + int speIdle = 6; for (int i = 1; argv[i]; ++i) { if (strcmp(argv[i], "-cpu") == 0) { machineNum = atoi(argv[++i]); } else if (strcmp(argv[i], "-p") == 0) { profile = 1; - } else if (strcmp(argv[i], "-spuidle") == 0) { - spuIdle = atoi(argv[++i]); + } else if (strcmp(argv[i], "-speidle") == 0) { + speIdle = atoi(argv[++i]); } } TaskManager *manager = new TaskManager(machineNum); - manager->init(spuIdle); + manager->init(speIdle); manager->set_TMend(defaultTMend);