Skip to content
Snippets Groups Projects
Commit 3db1c3f3 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Add (undocumented) separate_loop_head_tail_slab

parent 994b2600
No related branches found
No related tags found
No related merge requests found
......@@ -1382,4 +1382,21 @@ def find_unused_axis_tag(kernel, kind, insn_match=None):
# }}}
# {{{ separate_loop_head_tail_slab
# undocumented, because not super-useful
def separate_loop_head_tail_slab(kernel, iname, head_it_count, tail_it_count):
"""Mark *iname* so that the separate code is generated for
the lower *head_it_count* and the upper *tail_it_count*
iterations of the loop on *iname*.
"""
iname_slab_increments = kernel.iname_slab_increments.copy()
iname_slab_increments[iname] = (head_it_count, tail_it_count)
return kernel.copy(iname_slab_increments=iname_slab_increments)
# }}}
# vim: foldmethod=marker
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment