summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorAnthony LaTorre <telatorre@gmail.com>2011-05-09 14:51:42 -0400
committerAnthony LaTorre <telatorre@gmail.com>2011-05-09 14:51:42 -0400
commit34c57af59b8baac89b9fdc0b5ac964a4c67bd32d (patch)
treee4cc55289e3f3f4d1e9208e18f006b72cbd8c598 /test.py
parentaa1a149dab6c8e3d3a89488b26c3647f61d91778 (diff)
downloadchroma-34c57af59b8baac89b9fdc0b5ac964a4c67bd32d.tar.gz
chroma-34c57af59b8baac89b9fdc0b5ac964a4c67bd32d.tar.bz2
chroma-34c57af59b8baac89b9fdc0b5ac964a4c67bd32d.zip
pull triangle vertices in kernel function
Diffstat (limited to 'test.py')
-rw-r--r--test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.py b/test.py
index 1c9761d..0261e6d 100644
--- a/test.py
+++ b/test.py
@@ -71,7 +71,7 @@ for i in range(100):
rotate(np.int32(p.size), p_gpu, np.float32(np.pi/100), gpuarray.vec.make_float3(0,0,1), block=(256,1,1), grid=(width*height//256+1,1))
t0 = time.time()
- intersect(np.int32(x.size), x_gpu, p_gpu, np.int32(mesh.size//3), mesh_gpu, pixel_gpu, block=(128,1,1), grid=(width*height//128+1,1))
+ intersect(np.int32(x.size), x_gpu, p_gpu, np.int32(mesh.size//3), mesh_gpu, pixel_gpu, block=(64,1,1), grid=(width*height//64+1,1))
cuda.Context.synchronize()
elapsed = time.time() - t0