view example/get_segment/spe/Hello.cc @ 423:609758f9f350 draft

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 208ba3551474
children cebb48da955e
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;
}