Mercurial > hg > Members > kono > Cerium
changeset 938:8733ad41297d
dead lock still remains. zombi problem?
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 31 Jul 2010 10:32:19 +0900 |
parents | 9689cba44964 |
children | 9cfac2e8fc2e |
files | TaskManager/Cell/CellTaskManagerImpl.cc example/many_task/ppe/QuickSort.cc example/many_task/sort.cc example/many_task/spe/QuickSort.cc |
diffstat | 4 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/Cell/CellTaskManagerImpl.cc Sat Jul 31 10:11:41 2010 +0900 +++ b/TaskManager/Cell/CellTaskManagerImpl.cc Sat Jul 31 10:32:19 2010 +0900 @@ -76,7 +76,7 @@ /** * ActiveTaskQueue から Task を - * 各 SPE に渡す TaskList に入れる + * 各 SPE に渡す (backgound) TaskList に入れる * * ここの activeTaskQueue は FifoTaskManagerImpl のと意味が違い、 * spe に渡される Task だけ入っている @@ -182,7 +182,7 @@ speTaskList[id]->getLast()->next = speTaskList[id]; speTaskList[id]->freeAll(); spe_running--; -printf("SPE %d status ready\n",id); +// printf("SPE %d status ready, %d running\n",id, spe_running); } else if (data == (memaddr)MY_SPE_COMMAND_MALLOC) { // MY_SPE_COMMAND_MALLOC SPE からのmain memory request send_alloc_reply(this, id, speThreads); @@ -260,9 +260,9 @@ // spe の Task が終了した時点でなおす。 tmp->getLast()->next = 0; TaskListPtr p = tmp->getFirst(); -printf("SPE %d task list sending\n",id); +// printf("SPE %d task list sending\n",id); speThreads->send_mail(id, 1, (memaddr *)&p); -printf("SPE %d task list sent\n",id); +// printf("SPE %d task list sent\n",id); } void CellTaskManagerImpl::show_profile() {
--- a/example/many_task/ppe/QuickSort.cc Sat Jul 31 10:11:41 2010 +0900 +++ b/example/many_task/ppe/QuickSort.cc Sat Jul 31 10:32:19 2010 +0900 @@ -34,7 +34,7 @@ #endif #endif - printf("[PPE] Quick: length:%d addr->%x \n",end, (int)rbuff); + // printf("[PPE] Quick: length:%d addr->%x \n",end, (int)rbuff); //printf("[PPE] Quick: data[0]: %d addr->%x\n",sizeof(r_data),r_data); //show_data(r_data, end);
--- a/example/many_task/sort.cc Sat Jul 31 10:11:41 2010 +0900 +++ b/example/many_task/sort.cc Sat Jul 31 10:32:19 2010 +0900 @@ -54,7 +54,7 @@ { static int ccc = 0; - printf("restarted %d %% %d\n",ccc++,split_num); + // printf("restarted %d %% %d\n",ccc++,split_num); sort_start(s); return 0; }
--- a/example/many_task/spe/QuickSort.cc Sat Jul 31 10:11:41 2010 +0900 +++ b/example/many_task/spe/QuickSort.cc Sat Jul 31 10:32:19 2010 +0900 @@ -34,7 +34,7 @@ #endif #endif - printf("[SPE] Quick: length:%d addr->%x \n",end, (int)rbuff); + //printf("[SPE] Quick: length:%d addr->%x \n",end, (int)rbuff); //printf("[PPE] Quick: data[0]: %d addr->%x\n",sizeof(r_data),r_data); //show_data(r_data, end);