From 4e2720ff56afff978acaf589218cee0122d2ae29 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Fri, 6 May 2011 12:06:58 -0400 Subject: added rotations --- tests/rotate_test.cu | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/rotate_test.cu (limited to 'tests/rotate_test.cu') diff --git a/tests/rotate_test.cu b/tests/rotate_test.cu new file mode 100644 index 0000000..96e4d75 --- /dev/null +++ b/tests/rotate_test.cu @@ -0,0 +1,14 @@ +//-*-c-*- + + + +extern "C" +{ + +__global__ void rotate(float3 *a, float *phi, float3 *n, float3 *dest) +{ + int idx = blockIdx.x*blockDim.x + threadIdx.x; + dest[idx] = rotate(a[idx], phi[idx], n[idx]); +} + +} // extern "c" -- cgit