Skip to content
Snippets Groups Projects

Opencl datahandling

Merged Stephan Seitz requested to merge seitz/pystencils:opencl-datahandling into master
Viewing commit e02acf7d
Show latest version
1 file
+ 2
0
Preferences
Compare changes
@@ -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]