Mercurial > hg > Members > Moririn
view src/test/multiply.cu @ 454:77de0283ac92
Debug RedBlackTree.cbc.
author | ryokka |
---|---|
date | Mon, 11 Dec 2017 20:01:05 +0900 |
parents | 609bf62768b9 |
children |
line wrap: on
line source
extern "C" { __global__ void multiply(float* A, float* B, float* C) { // printf("%d %d\n",i[0],i[1]); int index = blockIdx.x * blockDim.x + threadIdx.x; C[index] = A[index] * B[0]; } }