diff --git a/osaca/semantics/marker_utils.py b/osaca/semantics/marker_utils.py index 42cb923..f47c147 100755 --- a/osaca/semantics/marker_utils.py +++ b/osaca/semantics/marker_utils.py @@ -23,6 +23,8 @@ def reduce_to_section(kernel, isa): raise ValueError('ISA not supported.') if start == -1: start = 0 + if end == -1: + end = len(kernel) return kernel[start:end]