diff options
author | Anthony LaTorre <telatorre@gmail.com> | 2011-05-09 14:14:03 -0400 |
---|---|---|
committer | Anthony LaTorre <telatorre@gmail.com> | 2011-05-09 14:14:03 -0400 |
commit | aa1a149dab6c8e3d3a89488b26c3647f61d91778 (patch) | |
tree | 3e9838340c8028748d8ce31dfaba4ea56c97510e | |
parent | 7e61bfbe7df445ff43abfc802df9471cf66b55ca (diff) | |
download | chroma-aa1a149dab6c8e3d3a89488b26c3647f61d91778.tar.gz chroma-aa1a149dab6c8e3d3a89488b26c3647f61d91778.tar.bz2 chroma-aa1a149dab6c8e3d3a89488b26c3647f61d91778.zip |
small speed improvement by changing the block size
-rw-r--r-- | test.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |