view example/Cuda/multiply.cu @ 1963:6988e5478a8c draft

fix CudaScheduler
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Wed, 12 Feb 2014 17:56:40 +0900
parents 67e50779feb4
children a68dbdf9b429
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];
        printf("%d\n",index);
    }
}