Mercurial > hg > Game > Cerium
diff example/fft/ppe/transpose.cc @ 1566:7d307bac94a6 draft
fft
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 16 Mar 2013 18:36:50 +0900 |
parents | 3df1868130cb |
children | 9832a5eb2027 |
line wrap: on
line diff
--- a/example/fft/ppe/transpose.cc Fri Mar 15 07:00:34 2013 +0900 +++ b/example/fft/ppe/transpose.cc Sat Mar 16 18:36:50 2013 +0900 @@ -4,17 +4,18 @@ #else #include <CL/cl.h> #endif +#include "Func.h" SchedDefineTask1(transpose,transpose); static int transpose(SchedTask* s,void* rbuf,void* wbuf) { - cl_float2* src = (cl_float2*)s->get_input(rbuf,0); - int* n = (int*)s->get_input(rbuf,1); - cl_float2* dst = (cl_float2*)s->get_output(wbuf,0); - unsigned int* xgid = (unsigned int*)s->global_get(0); - unsigned int* ygid = (unsigned int*)s->global_get(1); + cl_float2* src = (cl_float2*)s->get_inputAddr(0); + int* n = (int*)s->get_inputAddr(1); + cl_float2* dst = (cl_float2*)s->get_outputAddr(0); + unsigned int* xgid = (unsigned int*)s->global_get(FIRSTID); + unsigned int* ygid = (unsigned int*)s->global_get(SECONDID); unsigned int iid = ygid[0] * n[0] + xgid[0]; unsigned int oid = xgid[0] * n[0] + ygid[0];