summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony LaTorre <tlatorre9@gmail.com>2011-08-09 16:55:11 -0400
committerAnthony LaTorre <tlatorre9@gmail.com>2011-08-09 16:55:11 -0400
commit851e1d71af111e1eee0f28ecd1daa355ee666da7 (patch)
tree22743085952f17412fbb16df0ca06a0ce9bbdc5c
parent6870f1f5695c7cca3ed8e0a1cf559245991c80b5 (diff)
downloadchroma-851e1d71af111e1eee0f28ecd1daa355ee666da7.tar.gz
chroma-851e1d71af111e1eee0f28ecd1daa355ee666da7.tar.bz2
chroma-851e1d71af111e1eee0f28ecd1daa355ee666da7.zip
fix variable name in GPU.color_solids()
-rw-r--r--gpu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu.py b/gpu.py
index d987789..0f56ee4 100644
--- a/gpu.py
+++ b/gpu.py
@@ -186,7 +186,7 @@ class GPU(object):
solid_ids_gpu = gpuarray.to_gpu(np.array(solid_ids, dtype=np.int32))
solid_colors_gpu = gpuarray.to_gpu(np.array(colors, dtype=np.uint32))
- self.geo_funcs.color_solids(np.int32(solid_ids_gpu.size), np.uint32(self.triangles_gpu.size), self.solid_id_map_gpu, solid_ids_gpu, solid_colors_gpu, block=(self.nblock,1,1), grid=(solid_ids_gpu.size//self.nthread_per_block+1,1))
+ self.geo_funcs.color_solids(np.int32(solid_ids_gpu.size), np.uint32(self.triangles_gpu.size), self.solid_id_map_gpu, solid_ids_gpu, solid_colors_gpu, block=(self.nthread_per_block,1,1), grid=(solid_ids_gpu.size//self.nthread_per_block+1,1))
self.context.synchronize()
def setup_propagate(self, seed=1):