summaryrefslogtreecommitdiff
path: root/tests/linalg_test.cu
diff options
context:
space:
mode:
Diffstat (limited to 'tests/linalg_test.cu')
-rw-r--r--tests/linalg_test.cu6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/linalg_test.cu b/tests/linalg_test.cu
index 81043f1..bce5ea6 100644
--- a/tests/linalg_test.cu
+++ b/tests/linalg_test.cu
@@ -105,4 +105,10 @@ __global__ void dot(float3 *a, float3 *b, float* dest)
dest[idx] = dot(a[idx],b[idx]);
}
+__global__ void cross(float3 *a, float3 *b, float3* dest)
+{
+ int idx = blockIdx.x*blockDim.x + threadIdx.x;
+ dest[idx] = cross(a[idx],b[idx]);
+}
+
} // extern "c"