From 8e6e15bbab1e1fbab93f22afd9505264f038e94f Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Wed, 14 Aug 2019 18:58:18 +0200 Subject: [PATCH] Bugfix: Readd __launch_bounds__ for dialect 'cuda' --- pystencils/backends/cbackend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pystencils/backends/cbackend.py b/pystencils/backends/cbackend.py index d8facba..72c9b64 100644 --- a/pystencils/backends/cbackend.py +++ b/pystencils/backends/cbackend.py @@ -174,7 +174,7 @@ class CBackend: def _print_KernelFunction(self, node): function_arguments = ["%s %s" % (str(s.symbol.dtype), s.symbol.name) for s in node.get_parameters()] launch_bounds = "" - if self.__class__ == 'cuda': + if self._dialect == 'cuda': max_threads = node.indexing.max_threads_per_block() if max_threads: launch_bounds = "__launch_bounds__({}) ".format(max_threads) -- GitLab