From 142b3c3caff164deb9bc7b2848e58e52387723ff Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Fri, 16 Sep 2011 15:02:02 -0400 Subject: Move CUDA source inside chroma package, rename tests directory to test --- test/rotate_test.cu | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/rotate_test.cu (limited to 'test/rotate_test.cu') diff --git a/test/rotate_test.cu b/test/rotate_test.cu new file mode 100644 index 0000000..6cafc12 --- /dev/null +++ b/test/rotate_test.cu @@ -0,0 +1,14 @@ +//-*-c-*- + +#include "rotate.h" + +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