PSyclone icon indicating copy to clipboard operation
PSyclone copied to clipboard

Access Info in gocean kernel uses strings instead of PSyIR

Open hiker opened this issue 1 year ago • 0 comments

The stencil-based index information for a GOcean kernel is currently created out of strings, in gocean1p0._record_stencil_accesses:

i_expr = GOKern._format_access("i", i, current_depth)
j_expr = GOKern._format_access("j", j, current_depth)
var_accesses.add_access(signature, arg.access, self, [i_expr, j_expr])

which breaks dependency tools (and is in general just bad).

Fix this issue by creating PSyIR expressions instead.

hiker avatar Feb 01 '24 23:02 hiker