Skip to content
Snippets Groups Projects
Commit 573f728f authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Fix SerialDataHandling.swap to work with OpenCL

parent 494cfe09
No related branches found
No related tags found
No related merge requests found
......@@ -226,7 +226,7 @@ class SerialDataHandling(DataHandling):
def swap(self, name1, name2, gpu=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[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