diff options
author | Stan Seibert <stan@mtrr.org> | 2011-09-16 15:02:02 -0400 |
---|---|---|
committer | Stan Seibert <stan@mtrr.org> | 2011-09-16 15:02:02 -0400 |
commit | 142b3c3caff164deb9bc7b2848e58e52387723ff (patch) | |
tree | 417da3ad69a2756aff7a21dca4b08733d3e87afb /tests/test_sample_cdf.cu | |
parent | 084dfd08b714faefaea77cb7dc04d2e93dc04b1d (diff) | |
download | chroma-142b3c3caff164deb9bc7b2848e58e52387723ff.tar.gz chroma-142b3c3caff164deb9bc7b2848e58e52387723ff.tar.bz2 chroma-142b3c3caff164deb9bc7b2848e58e52387723ff.zip |
Move CUDA source inside chroma package, rename tests directory to test
Diffstat (limited to 'tests/test_sample_cdf.cu')
-rw-r--r-- | tests/test_sample_cdf.cu | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/test_sample_cdf.cu b/tests/test_sample_cdf.cu deleted file mode 100644 index 1401772..0000000 --- a/tests/test_sample_cdf.cu +++ /dev/null @@ -1,16 +0,0 @@ -// -*-c++-*- -#include "random.h" - -extern "C" { - -__global__ void test_sample_cdf(int offset, int ncdf, - float *cdf_x, float *cdf_y, float *out) -{ - int id = blockDim.x * blockIdx.x + threadIdx.x; - curandState s; - curand_init(0, id, offset, &s); - - out[id] = sample_cdf(&s, ncdf, cdf_x, cdf_y); -} - -} |