changeset 1937:e5b4e61b6f85 draft

change allocate size int to long long
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Mon, 03 Feb 2014 14:15:36 +0900
parents 3d54a6c26caa
children 71cb3365d9fb
files TaskManager/kernel/ppe/TaskManager.cc TaskManager/kernel/ppe/TaskManager.h TaskManager/kernel/ppe/TaskManagerImpl.h example/regex_mas/main.cc
diffstat 4 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/TaskManager.cc	Sat Feb 01 21:08:43 2014 +0900
+++ b/TaskManager/kernel/ppe/TaskManager.cc	Mon Feb 03 14:15:36 2014 +0900
@@ -77,7 +77,7 @@
 }
 
 void*
-TaskManager::allocate(int size) {
+TaskManager::allocate(long long size) {
     return m_impl->allocate(size);
 }
 
--- a/TaskManager/kernel/ppe/TaskManager.h	Sat Feb 01 21:08:43 2014 +0900
+++ b/TaskManager/kernel/ppe/TaskManager.h	Mon Feb 03 14:15:36 2014 +0900
@@ -24,7 +24,7 @@
     HTaskPtr create_task_array(int id, int num_task, int num_param, int num_inData, int num_outData);
 
     void run();
-    void *allocate(int size);
+    void *allocate(long long size);
     void set_TMend(void (*endf)(TaskManager *manager));
     int get_cpuNum();
     int get_random();
--- a/TaskManager/kernel/ppe/TaskManagerImpl.h	Sat Feb 01 21:08:43 2014 +0900
+++ b/TaskManager/kernel/ppe/TaskManagerImpl.h	Mon Feb 03 14:15:36 2014 +0900
@@ -81,7 +81,7 @@
 #endif
     }
 
-    void* allocate(int size, int alignment)
+    void* allocate(long long size, int alignment)
     {
 
         void *buff = 0;
@@ -96,7 +96,7 @@
         return buff;
     }
     
-    void* allocate(int size)
+    void* allocate(long long size)
     {
         
         void *buff = 0;
--- a/example/regex_mas/main.cc	Sat Feb 01 21:08:43 2014 +0900
+++ b/example/regex_mas/main.cc	Mon Feb 03 14:15:36 2014 +0900
@@ -38,7 +38,7 @@
 
 static int division = 16; // in Kbyte
 CPU_TYPE spe_cpu = SPE_ANY;
-CPU_TYPE read_spe_cpu = SPE_ANY;
+CPU_TYPE read_spe_cpu = IO_0;
 
 const char *usr_help_str = "Usage: ./word_count [-a -c -s] [-cpu spe_num] [-sw search_word] [-file filename]\n       Required filename & search_word\n";
 
@@ -155,7 +155,7 @@
         Task *t_exec = 0;
         HTask *h_exec = 0;
         for (int j = 0; j < array_task_num; j++) {
-            int a = w->task_spwaned++;
+            long a = w->task_spwaned++;
             if (w->size < size) size = w->size;
             if (size==0) break;
             if (use_task_array) {