Skip to content
Snippets Groups Projects
Commit e21050f7 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Revert "Use GLOBAL scope for C temporaries..."

This reverts commit c33945c3.
parent c33945c3
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ def get_temporary_name():
cache_key_generator=lambda n, **kw: n)
def temporary_variable(name, **kwargs):
from dune.perftool.loopy.temporary import DuneTemporaryVariable
return DuneTemporaryVariable(name, scope=lp.temp_var_scope.GLOBAL, **kwargs)
return DuneTemporaryVariable(name, scope=lp.temp_var_scope.PRIVATE, **kwargs)
# Now define generators for instructions. To ease dependency handling of instructions
......
......@@ -289,7 +289,7 @@ def _vectorize_quadrature_loop(knl, inames, suffix):
for name, increment in vector_indices.needed:
temporaries[name] = lp.TemporaryVariable(name, # name
dtype=np.int32,
scope=lp.temp_var_scope.GLOBAL,
scope=lp.temp_var_scope.PRIVATE,
)
new_insns.append(lp.Assignment(prim.Variable(name), # assignee
0, # expression
......
......@@ -75,7 +75,7 @@ def add_vector_view(knl, tmpname, pad_to=None, flatview=False):
shape=shape,
base_storage=bsname,
dtype=np.float64,
scope=lp.temp_var_scope.GLOBAL,
scope=lp.temp_var_scope.PRIVATE,
)
# Avoid that any of these temporaries are eliminated
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment