summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-12-17 13:17:07 +0000
committerGitHub <noreply@github.com>2019-12-17 13:17:07 +0000
commit76374867549ee85e89478ce894875ca27217f836 (patch)
tree67695949a4d904b89b70c4257c30471622ea9590
parentcdca2ba12a9dd3df67a00d0d3f40497aacadbe2b (diff)
downloadastra-wrapper-76374867549ee85e89478ce894875ca27217f836.tar.gz
astra-wrapper-76374867549ee85e89478ce894875ca27217f836.tar.bz2
astra-wrapper-76374867549ee85e89478ce894875ca27217f836.tar.xz
astra-wrapper-76374867549ee85e89478ce894875ca27217f836.zip
deallocates memory on GPU
closes #47
-rw-r--r--Wrappers/Python/ccpi/astra/processors/FBP.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Wrappers/Python/ccpi/astra/processors/FBP.py b/Wrappers/Python/ccpi/astra/processors/FBP.py
index adc4119..adf27eb 100644
--- a/Wrappers/Python/ccpi/astra/processors/FBP.py
+++ b/Wrappers/Python/ccpi/astra/processors/FBP.py
@@ -242,9 +242,10 @@ class FBP(DataProcessor):
# since we run gpu we need to rescale and flip it
IM.array[i] = np.flip(astra.data2d.get(rec_id) * self.volume_geometry.voxel_size_x,0)
- astra.algorithm.delete(alg_id)
+ astra.algorithm.delete(alg_id)
+ astra.data2d.delete(sinogram_id)
+
astra.data2d.delete(rec_id)
- astra.data2d.delete(sinogram_id)
return IM