Skip to content

Commit

Permalink
run_hw.py shouldn't overwrite DYNAMIC_KERNEL_LIMIT_END by default (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnes88 authored Aug 10, 2024
1 parent 76dfd0b commit 49fe436
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions util/tracer_nvbit/run_hw_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
"--limit_kernel_number",
dest="kernel_number",
default=-99,
help="Sets a hard limit to the " + "number of traced limits",
help="Sets a hard limit to the number of traced kernels",
)
parser.add_option(
"-t",
"--terminate_upon_limit",
dest="terminate_upon_limit",
action="store_true",
help="Once the kernel limit is " + "reached, terminate the tracing process",
help="Once the kernel limit is reached, terminate the tracing process",
)

(options, args) = parser.parse_args()
Expand Down Expand Up @@ -131,8 +131,6 @@
else:
if options.kernel_number > 0:
os.environ["DYNAMIC_KERNEL_LIMIT_END"] = str(options.kernel_number)
else:
os.environ["DYNAMIC_KERNEL_LIMIT_END"] = "0"

# first we generate the traces (.trace and kernelslist files)
# then, we do post-processing for the traces and generate (.traceg and kernelslist.g files)
Expand Down

0 comments on commit 49fe436

Please sign in to comment.