Mercurial > hg > Game > Cerium
changeset 1749:4d63d122eea0 draft
resolve set_inData
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 20 Nov 2013 23:19:01 +0900 |
parents | 61370f2987ff |
children | 87b2b59161bd |
files | example/regex_mas/main.cc |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/example/regex_mas/main.cc Wed Nov 20 19:46:04 2013 +0900 +++ b/example/regex_mas/main.cc Wed Nov 20 23:19:01 2013 +0900 @@ -30,6 +30,16 @@ int array_task_num = 8; int spe_num = 1; +/* + * set_inData_num + * task_array[k] = manager->create_task_array + * (TASK_EXEC,array_task_num,1,input_set_inData,1); + * create_task_arrayの第四引数でset_inDataの数を指定させている。 + * これにメチャクチャハマったので注意 + * いつかはcreate_task_arrayを消したい + */ +int set_inData_num = 2; + //static unsigned char* search_word; CPU_TYPE spe_cpu = SPE_ANY; const char *usr_help_str = "Usage: ./word_count [-a -c -s] [-cpu spe_num] [-file filename]\n"; @@ -113,7 +123,7 @@ Task **t_exec = (Task**)manager->allocate(sizeof(Task*)*spe_num); for (int k = 0; k < spe_num; k++) { - task_array[k] = manager->create_task_array(TASK_EXEC,array_task_num,1,1,1); + task_array[k] = manager->create_task_array(TASK_EXEC,array_task_num,1,set_inData_num,1); t_exec[k] = 0; if (all) { w->t_print->wait_for(task_array[k]);