summaryrefslogtreecommitdiff
path: root/tests/rotate_test.cu
blob: 96e4d75ee4147d7d622b2703d6fc59fef1a4dd7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"