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

Let SerialDataHandling.synchronization_function work with target OpenCL

parent 21d9b914
Branches
No related tags found
No related merge requests found
......@@ -272,6 +272,8 @@ class SerialDataHandling(DataHandling):
def synchronization_function(self, names, stencil=None, target=None, **_):
if target is None:
target = self.default_target
if target == 'opencl':
target = 'gpu'
assert target in ('cpu', 'gpu')
if not hasattr(names, '__len__') or type(names) is str:
names = [names]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment