Skip to content
Snippets Groups Projects

Fix OpenCL with older Sympy and pyopencl versions

Merged Michael Kuron requested to merge opencl-fix into master
Compare and
2 files
+ 10
3
Preferences
Compare changes
Files
2
@@ -81,7 +81,10 @@ class OpenClSympyPrinter(CudaSympyPrinter):
# For math functions, OpenCL is more similar to the C++ printer CustomSympyPrinter
# since built-in math functions are generic.
# In CUDA, you have to differentiate between `sin` and `sinf`
_print_math_func = CustomSympyPrinter._print_math_func
try:
_print_math_func = CustomSympyPrinter._print_math_func
except AttributeError:
pass
_print_Pow = CustomSympyPrinter._print_Pow
def _print_Function(self, expr):