Mercurial > hg > Game > Cerium
view example/multiply/cuda/multiply.cu @ 2048:6796d85f3d6b draft
remove error
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 28 Jan 2016 00:05:49 +0900 |
parents | 273de551f726 |
children |
line wrap: on
line source
extern "C" { __global__ void multi(long* params, float* A, float* B, float* C) { int id = blockIdx.x * blockDim.x + threadIdx.x; long length = params[0]; // for (int id = 0; id < length; id++) C[id]=A[id]*B[id]; } }