# HG changeset patch # User Yuhi TOMARI # Date 1363670415 -32400 # Node ID 2a8826934b03a3a4e1f25bbd5466c6a3594464be # Parent 0bd4598f5a65ca13f5167a54ecdc7ecf7276e746 adjust time measurement diff -r 0bd4598f5a65 -r 2a8826934b03 TaskManager/kernel/ppe/TaskManager.h --- a/TaskManager/kernel/ppe/TaskManager.h Mon Mar 18 15:34:19 2013 +0900 +++ b/TaskManager/kernel/ppe/TaskManager.h Tue Mar 19 14:20:15 2013 +0900 @@ -11,8 +11,8 @@ typedef struct nd_range { nd_range() { dimension = 1; - gws[0]=1; gws[0]=1; gws[0]=1; - lws[0]=1; lws[0]=1; lws[0]=1; + gws[0]=1; gws[1]=1; gws[2]=1; + lws[0]=1; lws[1]=1; lws[2]=1; } cl_uint dimension; size_t gws[3]; diff -r 0bd4598f5a65 -r 2a8826934b03 example/multiply/main.cc --- a/example/multiply/main.cc Mon Mar 18 15:34:19 2013 +0900 +++ b/example/multiply/main.cc Tue Mar 19 14:20:15 2013 +0900 @@ -8,6 +8,7 @@ extern void task_init(void); static int task = 1; static int length = DATA_NUM; +CPU_TYPE spe_cpu = SPE_ANY; const char *usr_help_str = "Usage: ./multiply \n"; void TMend(TaskManager *); @@ -31,18 +32,18 @@ printf("Multiplication went wrong.\n"); return; } - printf("Multiplication was succeeded.\n"); - return; } + printf("Multiplication was succeeded.\n"); + return; } - + static void print_result() { - printf("---\n"); + /* printf("---\n"); for (int i =0;icreate_task(MULTIPLY_TASK); multiply->nd_range(); - multiply->set_cpu(SPE_ANY); + multiply->set_cpu(spe_cpu); /** * Set of Input Data @@ -99,7 +101,7 @@ * Set 32bits parameter * add_param(32bit parameter); */ - multiply->set_param(1,(memaddr)length); + multiply->set_param(0, (memaddr)length); // add Active Queue multiply->spawn(); @@ -111,7 +113,6 @@ { init(argc, argv); // Task Register - // ppe/task_init.cc task_init(); for (int i = 0; i < task; ++i) { multi_init(manager);