changeset 1081:4a5498c98e34 draft

look like working...
author root@localhost.localdomain
date Fri, 17 Dec 2010 11:47:40 +0900
parents 704b9e320f1e
children cfabe454e7cc
files TaskManager/Fifo/FifoTaskManagerImpl.cc TaskManager/Makefile.cell example/HelloWorld/ppe/Hello.cc example/HelloWorld/spe/Hello.cc
diffstat 4 files changed, 15 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/TaskManager/Fifo/FifoTaskManagerImpl.cc	Sat Dec 18 11:11:42 2010 +0900
+++ b/TaskManager/Fifo/FifoTaskManagerImpl.cc	Fri Dec 17 11:47:40 2010 +0900
@@ -122,21 +122,31 @@
 }
 
 
+/**
+ *  called from CellTaskManagerImpl
+ */
 void
 FifoTaskManagerImpl::poll()
 {
-    set_runTaskList1(activeTaskQueue);
+    set_runTaskList(activeTaskQueue);
     // list を実行する
     sendTaskList();
     // ppe scheduler からの mail を調べる
     mail_check();
 }
 
+/**
+ *  single CPU run
+ */
 void
 FifoTaskManagerImpl::run()
 {
     do {
-	poll();
+	set_runTaskList1(activeTaskQueue);
+	// list を実行する
+	sendTaskList();
+	// ppe scheduler からの mail を調べる
+	mail_check();
     } while(!activeTaskQueue->empty()) ;
 
     if (!waitTaskQueue->empty()) {
--- a/TaskManager/Makefile.cell	Sat Dec 18 11:11:42 2010 +0900
+++ b/TaskManager/Makefile.cell	Fri Dec 17 11:47:40 2010 +0900
@@ -1,5 +1,6 @@
 include ./Makefile.def
 
+ABIBIT=32
 ABI= -m$(ABIBIT)
 TARGET    = libCellManager.a
 SPETARGET = libspemanager.a
--- a/example/HelloWorld/ppe/Hello.cc	Sat Dec 18 11:11:42 2010 +0900
+++ b/example/HelloWorld/ppe/Hello.cc	Fri Dec 17 11:47:40 2010 +0900
@@ -11,7 +11,7 @@
 {
     int task_id = (long)smanager->get_param(0);
 
-    smanager->printf("[%d] Hello, World!!\n", task_id);
+    smanager->printf("[%d] ppe Hello, World!!\n", task_id);
 
     return 0;
 }
--- a/example/HelloWorld/spe/Hello.cc	Sat Dec 18 11:11:42 2010 +0900
+++ b/example/HelloWorld/spe/Hello.cc	Fri Dec 17 11:47:40 2010 +0900
@@ -10,7 +10,7 @@
 {
     long task_id = (long)smanager->get_param(0);
 
-    smanager->printf("[%ld] Hello, World!!\n", task_id);
+    smanager->printf("[%ld] spe Hello, World!!\n", task_id);
 
     return 0;
 }