Skip to content
Snippets Groups Projects
Commit e336b4da authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix declaration of temporaries in ISPC target

parent c74b1b69
Branches
Tags
No related merge requests found
Pipeline #
...@@ -226,11 +226,8 @@ class ISPCTarget(CTarget): ...@@ -226,11 +226,8 @@ class ISPCTarget(CTarget):
raise LoopyError("unknown barrier kind") raise LoopyError("unknown barrier kind")
def wrap_temporary_decl(self, decl, is_local): def wrap_temporary_decl(self, decl, is_local):
from cgen.ispc import ISPCUniform, ISPCVarying from cgen.ispc import ISPCUniform
if is_local: return ISPCUniform(decl)
return ISPCUniform(decl)
else:
return ISPCVarying(decl)
def get_global_arg_decl(self, name, shape, dtype, is_written): def get_global_arg_decl(self, name, shape, dtype, is_written):
from loopy.codegen import POD # uses the correct complex type from loopy.codegen import POD # uses the correct complex type
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment