summaryrefslogtreecommitdiff
path: root/src/tools.cu
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-09-16 15:02:02 -0400
committerStan Seibert <stan@mtrr.org>2011-09-16 15:02:02 -0400
commit142b3c3caff164deb9bc7b2848e58e52387723ff (patch)
tree417da3ad69a2756aff7a21dca4b08733d3e87afb /src/tools.cu
parent084dfd08b714faefaea77cb7dc04d2e93dc04b1d (diff)
downloadchroma-142b3c3caff164deb9bc7b2848e58e52387723ff.tar.gz
chroma-142b3c3caff164deb9bc7b2848e58e52387723ff.tar.bz2
chroma-142b3c3caff164deb9bc7b2848e58e52387723ff.zip
Move CUDA source inside chroma package, rename tests directory to test
Diffstat (limited to 'src/tools.cu')
-rw-r--r--src/tools.cu21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/tools.cu b/src/tools.cu
deleted file mode 100644
index 80d06ec..0000000
--- a/src/tools.cu
+++ /dev/null
@@ -1,21 +0,0 @@
-//--*-c-*-
-
-extern "C"
-{
-
-__global__ void
-interleave(int nthreads, unsigned long long *x, unsigned long long *y,
- unsigned long long *z, int bits, unsigned long long *dest)
-{
- int id = blockIdx.x*blockDim.x + threadIdx.x;
-
- if (id >= nthreads)
- return;
-
- for (int i=0; i < bits; i++)
- dest[id] |= (x[id] & 1 << i) << (2*i) |
- (y[id] & 1 << i) << (2*i+1) |
- (z[id] & 1 << i) << (2*i+2);
-}
-
-} // extern "C"