Skip to content

Commit

Permalink
SCC: Add logging of private array markers in vector loop annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange05 authored and reuterbal committed Aug 30, 2023
1 parent cf5c2c6 commit 9a16efa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions transformations/transformations/single_column_coalesced.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,13 @@ def kernel_annotate_vector_loops_openacc(cls, routine, horizontal, vertical):
private_arrays = [v for v in private_arrays if not any(vertical.size in d for d in v.shape)]
private_arrays = [v for v in private_arrays if not any(horizontal.size in d for d in v.shape)]

if private_arrays:
# Log private arrays in vector regions, as these can impact performance
info(
f'[Loki-SCC::Annotate] Marking private arrays in {routine.name}: '
f'{[a.name for a in private_arrays]}'
)

mapper = {}
with pragma_regions_attached(routine):
for region in FindNodes(PragmaRegion).visit(routine.body):
Expand Down

0 comments on commit 9a16efa

Please sign in to comment.