Mercurial > hg > Game > Cerium
view example/Cuda/multiply.cu @ 1977:126b28fdae50 draft
fix cuda sample
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 04 Mar 2014 18:11:06 +0900 |
parents | a68dbdf9b429 |
children | f6aa6d6a3fa2 |
line wrap: on
line source
extern "C" { __global__ void multiply(float* A, float* B, float* C) { int index = blockIdx.x * blockDim.x + threadIdx.x; C[index] = A[index] * B[0]; } }