Skip to content

Commit 9f93401

Browse files
lint
1 parent 17ba240 commit 9f93401

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

loopy/statistics.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -656,10 +656,9 @@ class CountGranularity(Enum):
656656
657657
"""
658658

659-
WORKITEM = "workitem"
660-
SUBGROUP = "subgroup"
661-
WORKGROUP = "workgroup"
662-
ALL: ClassVar[Sequence[str]] = [WORKITEM, SUBGROUP, WORKGROUP]
659+
WORKITEM = 0
660+
SUBGROUP = 1
661+
WORKGROUP = 2
663662

664663
# }}}
665664

@@ -2357,7 +2356,7 @@ def _gather_access_footprints_for_single_kernel(
23572356

23582357
def gather_access_footprints(
23592358
t_unit: TranslationUnit, *, ignore_uncountable: bool = False,
2360-
entrypoint: str | None = None) -> Mapping[MemAccess, isl.Set]:
2359+
entrypoint: str | None = None) -> Mapping[MemAccess, "isl.Set"]:
23612360
"""Return a dictionary mapping ``(var_name, direction)`` to
23622361
:class:`islpy.Set` instances capturing which indices of each the array
23632362
*var_name* are read/written (where *direction* is either ``read`` or

0 commit comments

Comments
 (0)