Skip to content
Snippets Groups Projects
Commit 3757e179 authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Omit unnecessary replace_symbol call

parent f3105780
No related branches found
No related tags found
1 merge request!438Reduction Support
......@@ -219,10 +219,8 @@ class KernelCreationContext:
f"Make sure that it is only used once in a kernel's ReductionAssignment."
)
# replace datatype of lhs symbol with pointer datatype for write-back mechanism
symb = self.get_symbol(lhs_name, lhs_dtype)
pointer_symb = PsSymbol(lhs_name, PsPointerType(lhs_dtype))
self.replace_symbol(symb, pointer_symb)
# add symbol for lhs with pointer datatype for write-back mechanism
pointer_symb = self.get_symbol(lhs_name, PsPointerType(lhs_dtype))
# create kernel-local copy of lhs symbol
local_symb = PsSymbol(f"{lhs_name}_local", lhs_dtype)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment