Mercurial > hg > Game > Cerium
view example/multiply/gpu/Multi.cl @ 1941:f19885ea776d draft
add wordcount for cuda. fix CudaScheduler. add makefile
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 04 Feb 2014 02:18:07 +0900 |
parents | 67e50779feb4 |
children |
line wrap: on
line source
__kernel void multi(__global const long *params, __global const float* A, __global const float* B, __global float* C) { // int i=get_global_id(0); long id = get_global_id(0); // for(int i=0;i<length;i++) { C[id]=A[id]*B[id]; }