@@ -939,7 +939,7 @@ def optimize_schedule_maxpar_compact(schedule):
939939 guards = sa .guards
940940
941941 # Do we need to introduce guards to preserve the original semantics?
942- for i in sa .indices :
942+ for i in sa .active_dims :
943943 for d in i ._defines :
944944 try :
945945 int0 , int1 = sa .ispace [d ], ispace_union [d ]
@@ -973,6 +973,7 @@ def lower_schedule(schedule, meta, sregistry, opt_ftemps, opt_min_dtype, opt_min
973973 subs = {}
974974 for sa in schedule :
975975 pivot , writeto , ispace , aliaseds , indicess , guards = sa
976+ active_dims = sa .active_dims
976977
977978 name = sregistry .make_name ()
978979
@@ -1003,7 +1004,7 @@ def lower_schedule(schedule, meta, sregistry, opt_ftemps, opt_min_dtype, opt_min
10031004
10041005 # The indices used to populate the Array
10051006 indices = []
1006- for interval , i , s in zip (writeto , sa . indices , shift , strict = True ):
1007+ for interval , i , s in zip (writeto , active_dims , shift , strict = True ):
10071008 try :
10081009 # E.g., `xs`
10091010 di , = writeto .sub_iterators [i ]
@@ -1043,15 +1044,15 @@ def lower_schedule(schedule, meta, sregistry, opt_ftemps, opt_min_dtype, opt_min
10431044 try :
10441045 if any (i .is_Modulo for i in ispace .sub_iterators [d ]):
10451046 properties [d ] = normalize_properties (v , {SEQUENTIAL })
1046- elif d not in writeto . itdims :
1047+ elif d not in active_dims :
10471048 properties [d ] = normalize_properties (v , {PARALLEL_IF_PVT })
10481049 except KeyError :
10491050 # Non-dimension key such as (x, y) for diagonal stencil u(x+i hx, y+i hy)
10501051 pass
10511052
10521053 # Track star-shaped stencils for potential future optimization
10531054 if len (writeto ) > 1 and schedule .is_frame :
1054- properties [Hyperplane (writeto . itdims )] = {SEPARABLE }
1055+ properties [Hyperplane (active_dims )] = {SEPARABLE }
10551056
10561057 # Finally, build the alias Cluster
10571058 clusters .append (Cluster (expression , ispace , guards , properties ))
@@ -1516,9 +1517,9 @@ def dimensions(self):
15161517 return self .writeto .itdims
15171518
15181519 @property
1519- def indices (self ):
1520+ def active_dims (self ):
15201521 """
1521- The indices used to populate the temporary.
1522+ The active Dimensions used to populate the temporary.
15221523
15231524 The write-to space may be relaxed for storage sizing, while the
15241525 temporary still has to be indexed with the active iteration Dimension.
0 commit comments