Mercurial > hg > Members > kono > Cerium
view example/get_segment/spe/Hello.cc @ 421:cd77224d4224
Code load implementation... (not yet tested)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 24 Sep 2009 16:04:23 +0900 |
parents | 8c5fa57128cb |
children | 799071db126e |
line wrap: on
line source
#include <stdio.h> #include "Hello.h" #include "Func.h" /* これは必須 */ SchedDefineDynamicTask(Hello,Segment1); #define PP_STORE 3 #define SIZE (4096*sizeof(int)) int Hello::run(void *rbuf, void *wbuf) { int task_id = get_param(0); fprintf(stderr,"Hello!\n"); return 0; }