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

Let SerialDataHandling.synchronization_function work with target OpenCL

parent 061ab58b
1 merge request!119Opencl datahandling
...@@ -272,6 +272,8 @@ class SerialDataHandling(DataHandling): ...@@ -272,6 +272,8 @@ class SerialDataHandling(DataHandling):
def synchronization_function(self, names, stencil=None, target=None, **_): def synchronization_function(self, names, stencil=None, target=None, **_):
if target is None: if target is None:
target = self.default_target target = self.default_target
if target == 'opencl':
target = 'gpu'
assert target in ('cpu', 'gpu') assert target in ('cpu', 'gpu')
if not hasattr(names, '__len__') or type(names) is str: if not hasattr(names, '__len__') or type(names) is str:
names = [names] names = [names]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment