diff options
author | Stan Seibert <stan@mtrr.org> | 2011-09-19 14:36:13 -0400 |
---|---|---|
committer | Stan Seibert <stan@mtrr.org> | 2011-09-19 14:36:13 -0400 |
commit | a21b05e4727403e2e061234289af9e60e6022e5a (patch) | |
tree | 7a7d4c5809c370f3e542cfc8cb0bec7c2e4f5cdc /test/rotate_test.cu | |
parent | cfecff941fc619eb7269128afc62d9c11ae78aff (diff) | |
parent | a38c56ff1e268298568077af7f03c8ac64c6fb82 (diff) | |
download | chroma-a21b05e4727403e2e061234289af9e60e6022e5a.tar.gz chroma-a21b05e4727403e2e061234289af9e60e6022e5a.tar.bz2 chroma-a21b05e4727403e2e061234289af9e60e6022e5a.zip |
merge relayout branch
Diffstat (limited to 'test/rotate_test.cu')
-rw-r--r-- | test/rotate_test.cu | 14 |
1 files changed, 14 insertions, 0 deletions
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" |