view example/HelloWorld/spe/Hello.cc @ 1716:c12df61ded45 draft

fix gpu profile. not work yet
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Tue, 15 Oct 2013 17:21:10 +0900
parents 4a5498c98e34
children
line wrap: on
line source

#include <stdio.h>
#include "Hello.h"
#include "Func.h"

/* これは必須 */
SchedDefineTask1(Hello,hello);

static int
hello(SchedTask *smanager, void *rbuf, void *wbuf)
{
    long task_id = (long)smanager->get_param(0);

    smanager->printf("[%ld] spe Hello, World!!\n", task_id);

    return 0;
}