diff options
Diffstat (limited to 'gputhread.py')
-rw-r--r-- | gputhread.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gputhread.py b/gputhread.py index ba0bb4b..06921d5 100644 --- a/gputhread.py +++ b/gputhread.py @@ -1,4 +1,5 @@ import numpy as np +from copy import copy import time import pycuda.driver as cuda from pycuda.characterize import sizeof @@ -13,7 +14,7 @@ class GPUThread(threading.Thread): threading.Thread.__init__(self) self.device_id = device_id - self.geometry = geometry + self.geometry = copy(geometry) self.jobs = jobs self.output = output self.nblocks = nblocks |