Mercurial > hg > Game > Cerium
view example/Cuda/multiply.cu @ 1927:4eefec26e3e2 draft
add file
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 31 Jan 2014 07:15:07 +0900 |
parents | e801016bd47c |
children | 67e50779feb4 |
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[index]; } }