view example/Cuda/multiply.cu @ 1969:a68dbdf9b429 draft

fix GpuScheduler
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Tue, 25 Feb 2014 13:43:25 +0900
parents 67e50779feb4
children 126b28fdae50
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];
    }
}