From b4aeb040fb528b18f75268dd3fe45cf5676fede2 Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Tue, 6 Oct 2020 21:25:39 +0200 Subject: [PATCH] Use C11CodePrinter for sympy 1.7 C++ may cause problems for CUDA/OpenCL --- 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 d4f431ff..4373c04d 100644 --- a/pystencils/backends/cbackend.py +++ b/pystencils/backends/cbackend.py @@ -23,7 +23,7 @@ except ImportError: try: from sympy.printing.ccode import CCodePrinter # for sympy versions < 1.1 except ImportError: - from sympy.printing.cxx import CXX11CodePrinter as CCodePrinter # for sympy versions > 1.6 + from sympy.printing.c import C11CodePrinter as CCodePrinter # for sympy versions > 1.6 __all__ = ['generate_c', 'CustomCodeNode', 'PrintNode', 'get_headers', 'CustomSympyPrinter'] -- GitLab