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

Fix bug in graph_datahandling: HOST_TO_DEVICE and DEVICE_TO_HOST was swapped

parent 0c191f8d
No related branches found
No related tags found
No related merge requests found
...@@ -179,14 +179,14 @@ class GraphDataHandling(pystencils.datahandling.SerialDataHandling): ...@@ -179,14 +179,14 @@ class GraphDataHandling(pystencils.datahandling.SerialDataHandling):
def to_cpu(self, name): def to_cpu(self, name):
super().to_cpu(name) super().to_cpu(name)
self.call_queue.append(DataTransfer(self._fields[name], DataTransferKind.HOST_TO_DEVICE)) self.call_queue.append(DataTransfer(self._fields[name], DataTransferKind.DEVICE_TO_HOST))
def to_gpu(self, name): def to_gpu(self, name):
super().to_gpu(name) super().to_gpu(name)
if name in self._custom_data_transfer_functions: if name in self._custom_data_transfer_functions:
self.call_queue.append('Custom Tranfer Function') self.call_queue.append('Custom Tranfer Function')
else: else:
self.call_queue.append(DataTransfer(self._fields[name], DataTransferKind.DEVICE_TO_HOST)) self.call_queue.append(DataTransfer(self._fields[name], DataTransferKind.HOST_TO_DEVICE))
def synchronization_function(self, names, stencil=None, target=None, **_): def synchronization_function(self, names, stencil=None, target=None, **_):
for name in names: for name in names:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment