Mercurial > hg > Game > Cerium
changeset 1635:a11565fea1e5 draft
run setCpuTest
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 11 Jun 2013 18:32:50 +0900 |
parents | fbb4757d82ee |
children | e9cdaf7345d4 |
files | TaskManager/kernel/main.cc TaskManager/test/SetCpuTest/main.cc |
diffstat | 2 files changed, 5 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/kernel/main.cc Tue Jun 11 16:32:17 2013 +0900 +++ b/TaskManager/kernel/main.cc Tue Jun 11 18:32:50 2013 +0900 @@ -42,8 +42,8 @@ for (int i = 1; argv[i]; ++i) { if (strcmp(argv[i], "-cpu") == 0) { machineNum = atoi(argv[++i]); - } else if (strcmp(argv[i], "-gpu") == 0) { - gpuNum = atoi(argv[++i]); + } else if (strcmp(argv[i], "-gpu") == 0) { + gpuNum = 1; } else if (strcmp(argv[i], "-p") == 0) { profile = 1; } else if (strcmp(argv[i], "-export") == 0) {
--- a/TaskManager/test/SetCpuTest/main.cc Tue Jun 11 16:32:17 2013 +0900 +++ b/TaskManager/test/SetCpuTest/main.cc Tue Jun 11 18:32:50 2013 +0900 @@ -47,12 +47,10 @@ length = atoi(argv[++i]); } else if (strcmp(argv[i], "-count") == 0) { task = atoi(argv[++i]); - } else if (strcmp(argv[i], "-gpu") == 0) { - cputype = ANY_ANY; - } - + } else if (strcmp(argv[i], "-any") == 0) { + cputype = ANY_ANY; + } } - return 0; }