Skip to content
Snippets Groups Projects
Commit a911cd46 authored by Stephan Seitz's avatar Stephan Seitz Committed by Alexander Reinauer
Browse files

Fix SerialDataHandling.swap to work with OpenCL

parent 24d1dfcf
No related branches found
No related tags found
No related merge requests found
...@@ -226,7 +226,7 @@ class SerialDataHandling(DataHandling): ...@@ -226,7 +226,7 @@ class SerialDataHandling(DataHandling):
def swap(self, name1, name2, gpu=None): def swap(self, name1, name2, gpu=None):
if gpu is None: if gpu is None:
gpu = self.default_target == "gpu" gpu = self.default_target in self._GPU_LIKE_TARGETS
arr = self.gpu_arrays if gpu else self.cpu_arrays arr = self.gpu_arrays if gpu else self.cpu_arrays
arr[name1], arr[name2] = arr[name2], arr[name1] arr[name1], arr[name2] = arr[name2], arr[name1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment