summaryrefslogtreecommitdiff
path: root/Tests/CudaOnly/CUBIN/kernelC.cu
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CudaOnly/CUBIN/kernelC.cu')
-rw-r--r--Tests/CudaOnly/CUBIN/kernelC.cu7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/CudaOnly/CUBIN/kernelC.cu b/Tests/CudaOnly/CUBIN/kernelC.cu
new file mode 100644
index 0000000000..5f8a0ce93d
--- /dev/null
+++ b/Tests/CudaOnly/CUBIN/kernelC.cu
@@ -0,0 +1,7 @@
+
+__global__ void kernelC(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];
+ }
+}