diff 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 diff
--- a/example/Cuda/multiply.cu	Thu Feb 13 14:57:04 2014 +0900
+++ b/example/Cuda/multiply.cu	Tue Feb 25 13:43:25 2014 +0900
@@ -1,7 +1,6 @@
 extern "C" {
-    __global__ void multiply(/*float* A, float* B, float* 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);
+        C[index] = A[index] * B[0];
     }
 }