summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony LaTorre <telatorre@gmail.com>2011-05-09 14:14:03 -0400
committerAnthony LaTorre <telatorre@gmail.com>2011-05-09 14:14:03 -0400
commitaa1a149dab6c8e3d3a89488b26c3647f61d91778 (patch)
tree3e9838340c8028748d8ce31dfaba4ea56c97510e
parent7e61bfbe7df445ff43abfc802df9471cf66b55ca (diff)
downloadchroma-aa1a149dab6c8e3d3a89488b26c3647f61d91778.tar.gz
chroma-aa1a149dab6c8e3d3a89488b26c3647f61d91778.tar.bz2
chroma-aa1a149dab6c8e3d3a89488b26c3647f61d91778.zip
small speed improvement by changing the block size
-rw-r--r--test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.py b/test.py
index ec7c954..1c9761d 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=(256,1,1), grid=(width*height//256+1,1))
+ 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))
cuda.Context.synchronize()
elapsed = time.time() - t0