diff options
Diffstat (limited to 'Tests/CudaOnly/CUBIN/kernelA.cu')
-rw-r--r-- | Tests/CudaOnly/CUBIN/kernelA.cu | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/CudaOnly/CUBIN/kernelA.cu b/Tests/CudaOnly/CUBIN/kernelA.cu new file mode 100644 index 0000000..fbe0d26 --- /dev/null +++ b/Tests/CudaOnly/CUBIN/kernelA.cu @@ -0,0 +1,7 @@ + +__global__ void kernelA(float* r, float* x, float* y, float* z, int size) +{ + for (int i = threadIdx.x; i < size; i += blockDim.x) { + r[i] = x[i] * y[i] + z[i]; + } +} |