annotate example/Bulk/main.cc @ 839:1001c4bea1a0 draft

if unnecessary
author Yutaka_Kinjyo
date Fri, 28 May 2010 03:24:52 +0900
parents 64f1d80dc650
children 4b85fcf3c34d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #include <stdio.h>
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 #include <stdlib.h>
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 #include <string.h>
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 #include "TaskManager.h"
688
77c89477daa8 on going...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 687
diff changeset
5 #include "Task.h"
699
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 698
diff changeset
6 #include "ListData.h"
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 #include "Func.h"
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 extern void task_init(void);
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 static int length = DATA_NUM;
699
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 698
diff changeset
12 static int task = 3;
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
13 static int task_array_num = 3;
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
14 static int block_num = 3;
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
16 const char *usr_help_str = "Usage: ./twice [-length data_length] [-task_array_num task_num]\n\
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
17 -task_array_num Number of data in a block (default 16)\n\
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
18 -block_num Number of block\n\
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
19 -task Number of task\n\
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
20 -block_size Size of a block\n";
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
699
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 698
diff changeset
23 static void
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 print_data(int *data, int size, const char *title)
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 {
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 printf("%s ---\n", title);
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 for (int i = 0; i < size; i++) {
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 printf("%2d ", data[i]);
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 }
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 printf("\n");
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 }
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
32
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 /**
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 * タスク終了後の data1, data2 の確認
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 */
699
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 698
diff changeset
36 static void
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 twice_result(SchedTask *s, void *a, void *b)
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 {
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 int* data = (int*)a;
688
77c89477daa8 on going...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 687
diff changeset
40 int* task_buf = (int*)b;
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
41 print_data(data, length*task_array_num, "after");
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 free(data);
688
77c89477daa8 on going...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 687
diff changeset
43 free(task_buf);
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 }
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
45
699
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 698
diff changeset
46 static int
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 init(int argc, char **argv)
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
48 {
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
49 int block_size = 16;
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 for (int i = 1; argv[i]; ++i) {
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
51 if (strcmp(argv[i], "-task") == 0) {
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
52 task = atoi(argv[++i]);
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
53 } else if (strcmp(argv[i], "-task_array_num") == 0) {
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
54 task_array_num = atoi(argv[++i]);
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
55 } else if (strcmp(argv[i], "-block_num") == 0) {
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
56 block_num = atoi(argv[++i]);
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
57 } else if (strcmp(argv[i], "-block_size") == 0) {
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
58 block_size = atoi(argv[++i]);
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 }
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
60 }
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
61 length = task_array_num * block_num * block_size;
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
62
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
63 return 0;
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 }
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
65
701
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
66 #if 0
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
67 static void print_ListData(int size, ListElement *t)
699
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 698
diff changeset
68 {
701
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
69 for(int i = 0;i<size;i++) {
699
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 698
diff changeset
70 printf("ListData %d %d %lx\n",i,t[i].size,(unsigned long)t[i].addr);
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 698
diff changeset
71 }
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 698
diff changeset
72 }
701
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
73 #endif
699
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 698
diff changeset
74
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
75 void
700
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 699
diff changeset
76 twice_init(TaskManager *manager,int *data, int length)
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
77 {
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
78
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
79
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
80 for (int i = 0; i < length*task_array_num; i++) {
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
81 data[i] = i;
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
82 }
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
83
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
84 print_data(data, length*task_array_num, "before");
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
85
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
86 /**
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
87 * Create Task
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
88 * create_task(Task ID);
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
89 */
687
25afcd4ae380 test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 686
diff changeset
90
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
91 HTask *twice_main = manager->create_task_array(Twice,task_array_num,block_num+1,block_num,block_num);
700
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 699
diff changeset
92 Task *t = twice_main->next_task_array(Twice, 0);
701
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
93 #if 0
700
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 699
diff changeset
94 printf("allocate task size 0x%0x\n",t->size());
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 699
diff changeset
95 printf("allocate task total size 0x%0x = 0x%0x * %d\n",twice_main->r_size,
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
96 t->size(), task_array_num);
701
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
97 #endif
700
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 699
diff changeset
98 void *task_buf = twice_main->rbuf;
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 699
diff changeset
99 twice_main->set_post(twice_result, (void*)data, task_buf);
687
25afcd4ae380 test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 686
diff changeset
100
700
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 699
diff changeset
101 t = 0;
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
102 for(int i = 0;i<task_array_num;i++) {
700
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 699
diff changeset
103 t = twice_main->next_task_array(Twice, t);
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
104 int block_size = length/block_num;
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
105 t->set_param(0, (memaddr)block_num);
701
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
106
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
107 for(int j = 0;j<block_num;j++) {
701
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
108 /**
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
109 * Set 32bits parameter
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
110 * add_param(32bit parameter);
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
111 */
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
112 t->set_param(j+1, (memaddr)block_size);
701
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
113 /**
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
114 * Set of Input Data
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
115 * add_inData(address of input data, size of input data);
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
116 */
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
117 t->set_inData(j,data, sizeof(int)*block_size);
701
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
118 /**
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
119 * Set of Output area
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
120 * add_outData(address of output area, size of output area);
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
121 */
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
122 t->set_outData(j,data, sizeof(int)*block_size);
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
123 data += block_size;
701
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
124 }
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
125 #if 0
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
126 print_ListData(block_num,t->inData(0));
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
127 print_ListData(block_num,t->outData(0));
700
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 699
diff changeset
128 printf("pos 0x%0lx size 0x%0x\n",(unsigned long)t, t->size());
701
44095db8cb61 Bulk task worked on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
129 #endif
689
ecf63089f5bb Task Array generation worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 688
diff changeset
130 }
700
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 699
diff changeset
131 twice_main->spawn_task_array(t->next());
684
ecf7e09b1fe8 adding Array Task.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 659
diff changeset
132
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
133 twice_main->set_cpu(SPE_ANY);
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
134 /*
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
135 * set_post() で ppe task を渡せるようにしたい
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
136 */
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
137 // add Active Queue
684
ecf7e09b1fe8 adding Array Task.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 659
diff changeset
138 twice_main->spawn();
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
139 }
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
140
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
141 int
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
142 TMmain(TaskManager *manager,int argc, char *argv[])
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
143 {
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
144 if (init(argc, argv) < 0) {
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
145 return -1;
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
146 }
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
147
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
148 // Task Register
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
149 // ppe/task_init.cc
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
150 task_init();
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
151
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
152 for (int i = 0; i < task; ++i) {
787
64f1d80dc650 fix Bulk
yutaka@localhost.localdomain
parents: 701
diff changeset
153 int *data = (int*)manager->allocate(sizeof(int)*length*task_array_num);
700
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 699
diff changeset
154 twice_init(manager, data, length);
659
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
155 }
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
156
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
157 return 0;
c7199f162b64 bulk task list start.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
158 }