Skip to content

Commit

Permalink
SCCRawStack: Ensure we also set a stack_intent value
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange05 committed Jun 14, 2024
1 parent 9ffaab9 commit b7314dd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions loki/transformations/raw_stack_allocator.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,11 +813,7 @@ def _get_stack_var(self, routine, dtype, kind):
stack_name = self.type_name_dict[dtype][self.role] + '_' + self._get_kind_name(kind) + '_' + self.stack_name
stack_name = stack_name.replace('__', '_')

if self.role == 'kernel':
stack_intent = 'INOUT'

if self.role == 'driver':
stack_intent = None
stack_intent = 'INOUT' if self.role == 'kernel' else None

stack_type = SymbolAttributes(dtype = dtype,
kind = kind,
Expand Down

0 comments on commit b7314dd

Please sign in to comment.