diff --git a/pystencils/interpolation_astnodes.py b/pystencils/interpolation_astnodes.py index 51fa20f40f1a357960ed72b09526c7103c72c841..a13f57421434d2ee2d9dd0049da18df1a0b2e593 100644 --- a/pystencils/interpolation_astnodes.py +++ b/pystencils/interpolation_astnodes.py @@ -395,6 +395,10 @@ class TextureDeclaration(Node): def headers(self): return ['"pycuda-helpers.hpp"'] + def __str__(self): + from pystencils.backends.cuda_backend import CudaBackend + return CudaBackend()(self) + class TextureObject(TextureDeclaration): """