Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Nov 2, 2024
1 parent da8537c commit 7ac9fa6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion loopy/schedule/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ def _raise_loopy_err(x):
_update_nesting_constraints(relaxed_priorities, warn)

# ordered_loop_nests: A mapping from the unordered loop nests to their
# ordered couterparts. For example. If we had only one loop nest
# ordered counterparts. For example. If we had only one loop nest
# `frozenset({"i", "j", "k"})`, and the prioirities said added the
# constraint that "i" must be nested within "k", then `ordered_loop_nests`
# would be: `{frozenset({"i", "j", "k"}): ["j", "k", "i"]}` i.e. the loop
Expand Down
8 changes: 4 additions & 4 deletions loopy/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,16 +422,16 @@ def to_bytes(self):
bytes_map = get_mem_access_map(knl).to_bytes()
params = {"n": 512, "m": 256, "l": 128}
s1_g_ld_byt = bytes_map.filter_by(
s1_g_ld_bytes = bytes_map.filter_by(
mtype=["global"], lid_strides={0: 1},
direction=["load"]).eval_and_sum(params)
s2_g_ld_byt = bytes_map.filter_by(
s2_g_ld_bytes = bytes_map.filter_by(
mtype=["global"], lid_strides={0: 2},
direction=["load"]).eval_and_sum(params)
s1_g_st_byt = bytes_map.filter_by(
s1_g_st_bytes = bytes_map.filter_by(
mtype=["global"], lid_strides={0: 1},
direction=["store"]).eval_and_sum(params)
s2_g_st_byt = bytes_map.filter_by(
s2_g_st_bytes = bytes_map.filter_by(
mtype=["global"], lid_strides={0: 2},
direction=["store"]).eval_and_sum(params)
Expand Down
2 changes: 1 addition & 1 deletion loopy/transform/realize_reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ def _add_to_depends_on(insn_id, new_depends_on_params):

needs_replacement = True

# {{{ generate a new assignent instruction
# {{{ generate a new assignment instruction

new_assignee_name = var_name_gen(
"{insn_id}_retval_{assignee_nr}"
Expand Down

0 comments on commit 7ac9fa6

Please sign in to comment.