comparison TaskManager/kernel/ppe/HTask.cc @ 970:1a4849b2acad draft

change pipeline and TaskArray fast
author Yutaka Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
date Thu, 26 Aug 2010 20:38:06 +0900
parents 774eba654643
children 5393bebe0956
comparison
equal deleted inserted replaced
968:122b1fddfa94 970:1a4849b2acad
74 Task * 74 Task *
75 HTask::create_task_array(int id, int num_task, int num_param, int num_inData, int num_outData) 75 HTask::create_task_array(int id, int num_task, int num_param, int num_inData, int num_outData)
76 { 76 {
77 r_size = Task::calc_size(num_param, num_inData, num_outData)*num_task; 77 r_size = Task::calc_size(num_param, num_inData, num_outData)*num_task;
78 rbuf = (memaddr) mimpl->allocate(r_size); 78 rbuf = (memaddr) mimpl->allocate(r_size);
79 //printf("r_size %d\n",r_size);
79 bzero(rbuf,r_size); 80 bzero(rbuf,r_size);
80 Task *task = (Task*)rbuf; 81 Task *task = (Task*)rbuf;
81 task->init(id, num_param,num_inData,num_outData); 82 task->init(id, num_param,num_inData,num_outData);
82 // task->print(); 83 // task->print();
83 return task; // first task 84 return task; // first task