From e02acf7d5e7990e2f9a8a71feddbfbcb945a7593 Mon Sep 17 00:00:00 2001
From: Stephan Seitz <stephan.seitz@fau.de>
Date: Tue, 12 Nov 2019 15:17:55 +0100
Subject: [PATCH] Let SerialDataHandling.synchronization_function work with
 target OpenCL

---
 pystencils/datahandling/serial_datahandling.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pystencils/datahandling/serial_datahandling.py b/pystencils/datahandling/serial_datahandling.py
index 248b1e611..a3e6820f0 100644
--- a/pystencils/datahandling/serial_datahandling.py
+++ b/pystencils/datahandling/serial_datahandling.py
@@ -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]
-- 
GitLab