From 9d68f8ea2b6a64e83195f16aa066caac5eeb8fae Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Thu, 11 Aug 2011 15:09:16 -0400 Subject: add consume() to itertoolset. checksum the number of bits shifted in each iteration of the bounding volume hierarchy construction. only cache the bounding volume hierarchy information. --- gpu.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gpu.py') diff --git a/gpu.py b/gpu.py index e6b6856..160d766 100644 --- a/gpu.py +++ b/gpu.py @@ -179,6 +179,13 @@ class GPU(object): self.geometry = geometry + print 'average of %f child nodes per node' % (np.mean(geometry.node_map_end[geometry.first_node:] - geometry.node_map[geometry.first_node:])) + + print '%i nodes with one child' % (np.count_nonzero((geometry.node_map_end[geometry.first_node:] - geometry.node_map[geometry.first_node:]) == 1)) + + print '%i leaf nodes with one child' % (np.count_nonzero((geometry.node_map_end[:geometry.first_node] - geometry.node_map[:geometry.first_node]) == 1)) + + self.print_device_usage() def reset_colors(self): -- cgit