From 681b7c7e392f99b2c2ba0bdb56b0a8c155d108c4 Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Wed, 5 Oct 2011 11:04:19 -0400 Subject: 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. --- chroma/gpu/photon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit