Mercurial > hg > Game > Cerium
view example/dependency_task/spe/Print.cc @ 2069:26aa08c9a1de draft default tip
cuda example fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 12 Feb 2017 10:04:55 +0900 |
parents | 0e91ddaad798 |
children |
line wrap: on
line source
#include <stdio.h> #include <string.h> #include "Print.h" #include "Func.h" /* これは必須 */ SchedDefineTask(Print); static int run(SchedTask *s, void *rbuf, void *wbuf) { int *idata = (int*)s->get_input(rbuf, 0); int length = (long)s->get_param(0); s->printf("[TASK_PRINT]\n"); for (int i = 0; i < length; i++) { s->printf("%2d ", idata[i]); } s->printf("\n"); return 0; }