diff options
author | Anthony LaTorre <telatorre@gmail.com> | 2011-05-06 12:06:58 -0400 |
---|---|---|
committer | Anthony LaTorre <telatorre@gmail.com> | 2011-05-06 12:06:58 -0400 |
commit | 4e2720ff56afff978acaf589218cee0122d2ae29 (patch) | |
tree | 98be56318474b5d87c3514bd97bb4ae5b33f0d1b /tests/linalg_test.cu | |
parent | 98dc8b3d4eb46fdb73b01e78c5e53ff3a779ab85 (diff) | |
download | chroma-4e2720ff56afff978acaf589218cee0122d2ae29.tar.gz chroma-4e2720ff56afff978acaf589218cee0122d2ae29.tar.bz2 chroma-4e2720ff56afff978acaf589218cee0122d2ae29.zip |
added rotations
Diffstat (limited to 'tests/linalg_test.cu')
-rw-r--r-- | tests/linalg_test.cu | 6 |
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" |