Mercurial > hg > Game > Cerium
changeset 1726:9e4d2827d804 draft
add gpu_task_init()
author | Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 30 Oct 2013 18:34:52 +0900 |
parents | 3692c19847cc |
children | e99dc86d39e2 |
files | TaskManager/test/UtilizationTest/main.cc TaskManager/test/UtilizationTest/multiply example/multiply/ppe/task_init.cc |
diffstat | 3 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/test/UtilizationTest/main.cc Wed Oct 30 17:28:51 2013 +0900 +++ b/TaskManager/test/UtilizationTest/main.cc Wed Oct 30 18:34:52 2013 +0900 @@ -75,14 +75,14 @@ long task_id = 0; HTask *multiply = manager->create_task(MULTIPLY_TASK); - multiply->set_cpu((CPU_TYPE)((int)SPE_0)); + multiply->set_cpu((CPU_TYPE)((int)SPE_ANY)); multiply->set_inData(0,(memaddr)A, sizeof(float)*length); multiply->set_inData(1,(memaddr)B, sizeof(float)*length); multiply->set_param(0,task_id++); multiply->set_outData(0,(memaddr)C, sizeof(float)*length); - multiply->spawn(); + multiply->iterate(length); // HTask* previous = multiply;
--- a/example/multiply/ppe/task_init.cc Wed Oct 30 17:28:51 2013 +0900 +++ b/example/multiply/ppe/task_init.cc Wed Oct 30 18:34:52 2013 +0900 @@ -3,7 +3,6 @@ /* 必ずこの位置に書いて */ SchedExternTask(Multiply); - /** * この関数は ../spe/spe-main と違って * 自分で呼び出せばいい関数なので @@ -15,3 +14,9 @@ { SchedRegisterTask(MULTIPLY_TASK, Multiply); } + +void +gpu_task_init(void) +{ + // nop +}