diff options
author | Stan Seibert <stan@mtrr.org> | 2011-10-05 11:04:19 -0400 |
---|---|---|
committer | Stan Seibert <stan@mtrr.org> | 2011-10-05 11:04:19 -0400 |
commit | 681b7c7e392f99b2c2ba0bdb56b0a8c155d108c4 (patch) | |
tree | 9fbf56beb946c5e050572819daba682ea8581d7b | |
parent | 927d6b4d2d08b73cb6743dae01578985efb8f724 (diff) | |
download | chroma-681b7c7e392f99b2c2ba0bdb56b0a8c155d108c4.tar.gz chroma-681b7c7e392f99b2c2ba0bdb56b0a8c155d108c4.tar.bz2 chroma-681b7c7e392f99b2c2ba0bdb56b0a8c155d108c4.zip |
Calling the garbage collector explicitly is very expensive and gets progressively slower the longer the program runs. Need to find another way to deal with running out of GPU memory due to reference cycles in PyCUDA.
-rw-r--r-- | chroma/gpu/photon.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chroma/gpu/photon.py b/chroma/gpu/photon.py index 2a9a1ff..739c922 100644 --- a/chroma/gpu/photon.py +++ b/chroma/gpu/photon.py @@ -145,7 +145,7 @@ class GPUPhotons(object): del self.flags del self.last_hit_triangles # Free up GPU memory quickly if now available - gc.collect() + #gc.collect() class GPUPhotonsSlice(GPUPhotons): '''A `slice`-like view of a subrange of another GPU photons array. |