changeset 1066:04a42a788fa2 draft

speidle init fix.
author tkaito@henri
date Thu, 16 Dec 2010 01:30:45 +0900
parents 4d79aed93a07
children 5ad8fb1dc70f
files TaskManager/Cell/CellTaskManagerImpl.cc TaskManager/Cell/CellTaskManagerImpl.h TaskManager/kernel/main.cc
diffstat 3 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/TaskManager/Cell/CellTaskManagerImpl.cc	Thu Dec 16 00:27:36 2010 +0900
+++ b/TaskManager/Cell/CellTaskManagerImpl.cc	Thu Dec 16 01:30:45 2010 +0900
@@ -129,13 +129,14 @@
 
 
 void
-CellTaskManagerImpl::debug_check_spe_idle(QueueInfo<HTask> * activeTaskQueue)
+CellTaskManagerImpl::debug_check_spe_idle(QueueInfo<HTask> * activeTaskQueue, int spe_running_)
 {
-	printf("spu_idle : size=%d \n", activeTaskQueue->length());
+	printf("spu_idle! spe_running = %d : activeTaskQueue->length = %d \n"
+		, spe_running_, activeTaskQueue->length());
 	HTask *task = activeTaskQueue->getFirst();
 	
 	do {
-		printf("task_name = %s ",ppeManager->get_task_name(task));		
+		printf("task_name = %s ,",ppeManager->get_task_name(task));		
 	} while ((task = activeTaskQueue->getNext(task)) != 0);
 	printf("\n");
 }
@@ -152,7 +153,7 @@
 	    poll();
 	} while (ppeManager->activeTaskQueue->empty() && spe_running >0 );
       if (spe_running < spu_limit) {
-	debug_check_spe_idle(ppeManager->activeTaskQueue);
+	debug_check_spe_idle(ppeManager->activeTaskQueue, spe_running);
 	} 
     } while (!ppeManager->activeTaskQueue->empty() || 
 	!activeTaskQueue->empty() ||
--- a/TaskManager/Cell/CellTaskManagerImpl.h	Thu Dec 16 00:27:36 2010 +0900
+++ b/TaskManager/Cell/CellTaskManagerImpl.h	Thu Dec 16 01:30:45 2010 +0900
@@ -32,7 +32,7 @@
     void show_profile() ;
     void start_profile() ;
     void polling();
-    void debug_check_spe_idle(QueueInfo<HTask> * activeTaskQueue);
+    void debug_check_spe_idle(QueueInfo<HTask> * activeTaskQueue, int spe_running_);
 
 private:
     void send_taskList(int id);
--- a/TaskManager/kernel/main.cc	Thu Dec 16 00:27:36 2010 +0900
+++ b/TaskManager/kernel/main.cc	Thu Dec 16 01:30:45 2010 +0900
@@ -34,7 +34,7 @@
 main(int argc, char *argv[])
 {
     int machineNum = 1;
-    int speIdle = 6;
+    int speIdle = 0;
     for (int i = 1; argv[i]; ++i) {
         if (strcmp(argv[i], "-cpu") == 0) {
             machineNum = atoi(argv[++i]);