diff --git a/source/bin/rocprofv3.py b/source/bin/rocprofv3.py index cd7f4f5..3b385cd 100755 --- a/source/bin/rocprofv3.py +++ b/source/bin/rocprofv3.py @@ -4,7 +4,6 @@ import sys import argparse import subprocess -import numpy class dotdict(dict): @@ -196,7 +195,7 @@ def add_parser_bool_argument(gparser, *args, **kwargs): "--pc-sampling-interval", help="", default=None, - type=numpy.uint64, + type=int, ) basic_tracing_options = parser.add_argument_group("Basic tracing options") @@ -1010,6 +1009,9 @@ def log_config(_env): ): fatal_error("All three PC sampling configurations need to be set") + if args.pc_sampling_interval <= 0: + fatal_error("PC sampling interval must be a positive number.") + update_env("ROCPROF_PC_SAMPLING_UNIT", args.pc_sampling_unit) update_env("ROCPROF_PC_SAMPLING_METHOD", args.pc_sampling_method) update_env("ROCPROF_PC_SAMPLING_INTERVAL", args.pc_sampling_interval)