#define len 1024 |
#define cicrcular 1 |
... |
extern void comp(int *, int *, int ); |
TCE_ChnSet *ChnSet; |
int buffer[len],inbuf[len],outbuf[len]; |
int src = 0,step = 1; |
... |
tce_chnset_sync(ChnSet); |
tce_chnset_bcast(ChnSet,src,buffer,len,FMT_Int); |
tce_chnset_gather(ChnSet,src,inbuf,outbuf,len,FMT_Int); |
tce_chnset_concat(ChnSet,inbuf,outbuf,len,FMT_Int); |
tce_chnset_scatter(ChnSet,src,inbuf,outbuf,len,FMT_Int); |
tce_chnset_reduce(ChnSet,src,comp,inbuf,outbuf,len ,FMT_Int); |
tce_chnset_combine(ChnSet,comp,inbuf,outbuf,len,FMT_Int); |
tce_chnset_prefix(ChnSet,comp,inbuf,outbuf,len,FMT_Int); |
tce_chnset_shift(ChnSet,circular,step,inbuf,outbuf,len,FMT_Int); |
... |